In order for Systems Manager to work on your instances, a AmazonEC2RoleforSSM role must be applied to the instance. Without this step, you won’t be able to see instances available to perform automation.
From Systems Manager menu, choose Automation then choose Execute Automation.
Choose the categories you want for automation. For this example we will choose AMI management and AWS-Createimage.
This is kinda like version control by the AWS, use the default value.
There are four options to run the automation, for this demo I will use Simple execution.
Enable Show Interactive Instance picker to pick instances easily. If you don’t have role applied properly, you won’t see instances here. If you don’t want your instance to reboot during AMI creation, type true in the NoReboot field, otherwise type false. Left AutomationAssumeRole empty, Automation will create one itself. Finally, click Execute.
Once executed, you would see that the automation is in progress.
Quickly switch to Snapshots page and AMI page to confirm that AMI creation is in progress!
Back to Automation to see that the status is success.
And finally a view of the automation list.