AWS Certified DevOps Engineer Notes
schemaVersion: "2.2"
description: "Hello World"
parameters:
parameters:
type: "String"
description: "Some text to print"
default: "none"
mainSteps:
-
action: "aws:runShellScript"
name: "runShellScript"
inputs:
workingDirectory: ""
runCommand:
- "echo 'hello world'"
- "echo "
AWS-StopEC2InstanceWithApproval runbook to request that one or more AWS Identity and Access Management (IAM) users approve the instance stop action. After the approval is received, Automation stops the instanceAWS-StopEC2Instance runbook to automatically stop instances on a schedule by using Amazon EventBridge or by using a maintenance window taskAWS-UpdateCloudFormationStackWithApproval runbook to update resources that were deployed by using CloudFormation template. The update applies a new templateAWS-RestartEC2InstanceWithApproval runbook to target an AWS resource group that includes multiple instancesAWS-UpdateLinuxAmi and AWS-UpdateWindowsAmi runbooks to create golden AMIs from a source AMI. We can run custom scripts before and after updates are applied. We can also include or exclude specific packages from being installedAWSSupport-ExecuteEC2Rescue runbook to recover impaired instances. An instance can become unreachable for a variety of reasons, including network misconfigurations, RDP issues, or firewall settingsExample of hierarchy:
aws ssm get-parameters --names /my-app/dev/db-url /my-app/dev/db-password
aws ssm get-parameters --names /my-app/dev/db-url /my-app/dev/db-password --with-decryption
aws ssm get-parameters-by-path --path /my-app/ --recursive
Patch GroupAWS-RunPatchBaseline SSM Document can be used to run a Patch Baselinecom.amazonaws.region.ssm to allow Inbound 443com.amazonaws.region.ssmmessages to allow Inbound 443com.amazonaws.region.kmscom.amazonaws.region.logscom.amazonaws.region.s3 (requires route table update)i- and for on-premise instances it starts with mi-