Search code examples
scheduleaws-ssm

Automate AWS SSM document execution


I have an AWS SSM document shared from another account, to install a software on an EC2 instance. Since there are auto-scaled EC2 instances, depending on the demand, new instances spin up.

Requirement is to automate this document execution on all the SSM Managed EC2 instances every day at a specified time, so that no EC2 instance will be left out without the required software.

What are the ways I can use here? I tried using the Run Command feature, but the name of document does not show up in the list.


Solution

  • You can use SSM State Manager to automate the execution of that SSM document https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-state.html