Skip to content

CICD-269 · AWS Systems Manager deployment ​

Encyclopedia · Cloud infrastructure integration · All snippets

Previous · CICD-268 · Next · CICD-270

1. Where it fits ​

  • Placement CI run step or authorized lab terminal.
  • Prerequisites provider CLI, scoped CI identity, test environment and provider configuration for named resource.
  • Platforms github-actions, cloud-cli.
  • Parameters SSM_INSTANCE.

2. Copy the snippet ​

bash
id=$(aws ssm send-command --instance-ids "${SSM_INSTANCE:?}" --document-name DeployWebStaging --query 'Command.CommandId' --output text)
aws ssm wait command-executed --command-id "$id" --instance-id "$SSM_INSTANCE"

3. How it works ​

The command submits a reviewed SSM document to the selected managed instance and captures its execution state.

4. Verify the result ​

Use a reviewed custom SSM document and limit both allowed documents and instance targeting in IAM.

Validation version-dependent (Bash parse). Status definitions.