Updating your Amazon Linux 2 AMIs on Snowball Edge
As a best-practice for security, keep your Amazon Linux 2 AMIs up-to-date on Snowball Edge. Regularly check the Amazon Linux 2 AMI (HVM), SSD Volume Type (64-bit x86)
You can also get the latest Amazon Linux 2 image ID using the ssm get-parameters
command in the AWS CLI.
aws ssm get-parameters --names /aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-gp2 --query 'Parameters[0].[Value]' --region
your-region
The command returns the latest image ID of the AMI. For example:
ami-0ccb473bada910e74