SHARE
TWEET

Untitled

a guest Jun 26th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ---
  2. description: "Automation Document in YAML - version 3.0. Script to fully start instances in order respecting components dependencies. Created by - xxxx"
  3. schemaVersion: "0.3"
  4. # assumeRole: "{{ AutomationAssumeRole }}"
  5. # parameters:
  6. #   InstanceId:
  7. #     type: "StringList"
  8. #     description: "(Required) EC2 Instance(s) to start"
  9. #   AutomationAssumeRole:
  10. #     type: "String"
  11. #     description: "(Optional) The ARN of the role that allows Automation to perform the actions on your behalf."
  12. #     default: ""
  13. mainSteps:
  14. ## STEP 1
  15. - name: startSomeProductComponent1Test
  16.   action: aws:runCommand
  17.   maxAttempts: 2
  18.   inputs:
  19.     Tags:
  20.     - Key: Product
  21.       Value: SomeProduct
  22.     - Key: Name
  23.       Value: SomeProduct-Component1-Test
  24.     DocumentName: AWS-RunPowerShellScript
  25.     Parameters:
  26.       commands:
  27.       - Start-Service -Name "Component1"
  28.       - Start-Sleep -s 30
  29.   nextStep: ...
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top