Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- description: "Automation Document in YAML - version 3.0. Script to fully start instances in order respecting components dependencies. Created by - xxxx"
- schemaVersion: "0.3"
- # assumeRole: "{{ AutomationAssumeRole }}"
- # parameters:
- # InstanceId:
- # type: "StringList"
- # description: "(Required) EC2 Instance(s) to start"
- # AutomationAssumeRole:
- # type: "String"
- # description: "(Optional) The ARN of the role that allows Automation to perform the actions on your behalf."
- # default: ""
- mainSteps:
- ## STEP 1
- - name: startSomeProductComponent1Test
- action: aws:runCommand
- maxAttempts: 2
- inputs:
- Tags:
- - Key: Product
- Value: SomeProduct
- - Key: Name
- Value: SomeProduct-Component1-Test
- DocumentName: AWS-RunPowerShellScript
- Parameters:
- commands:
- - Start-Service -Name "Component1"
- - Start-Sleep -s 30
- nextStep: ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement