These templates provide the roles, and a document to build AMIs using SSM Automation.
The require:
- A VPC with some public subnets, in my case I am just using a default VPC.
- The AMI ID of the RHEL base image, this is tested with 7.2 and up.
To get the latest AMI you can run the following command.
aws ec2 --region ap-southeast-2 describe-images --owners 309956199498 --query 'Images[*].[CreationDate,Name,ImageId]' --filters "Name=name,Values=RHEL-7.?*GA*" --output table --output text | sort -r