Updating your Amazon Linux 2 AMIs on Snow Family devices - Amazon Snowcone User Guide
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Updating your Amazon Linux 2 AMIs on Snow Family devices

As a best-practice for security, keep your Amazon Linux 2 AMIs up-to-date on Snow Family devices. Regularly check the Amazon Linux 2 AMI (HVM), SSD Volume Type (64-bit x86) in the Amazon Web Services Marketplace for updates. When you identify the need to update your AMI, import the latest Amazon Linux 2 image to the Snow device. See Importing an Image into Your Device as an Amazon EC2-compatible AMI.

You can also get the latest Amazon Linux 2 image ID using the ssm get-parameters command in the Amazon 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