AWS Systems Manager¶
- quick-setup
- fleet-manager
- run-command
- Inventory
- SSH
-
The ec2 instance needs network access to the Systems Manager service.
Commands¶
Connect to instance: aws ssm start-session --target i-006b11ac03868d528
Run Command¶
aws ssm send-command --document-name "AWS-RunShellScript" --document-version "1" --targets '[{"Key":"InstanceIds","Values":["i-123456789012345"]}]' --parameters '{"workingDirectory":[""],"executionTimeout":["3600"],"commands":["date"]}' --timeout-seconds 600 --max-concurrency "50" --max-errors "0" --output-s3-bucket-name "bash-my-aws-demo" --region ap-southeast-2