Re: AWS Parameter Store AMIs

From: Colin Percival <cperciva_at_freebsd.org>
Date: Fri, 12 Jul 2024 19:35:52 UTC
On 7/12/24 11:43, Pete Wright wrote:
> I'd like to say thanks for putting the AMI's for recent releases in the aws 
> parameter store, this certainly makes it easier for automation purposes.

Ooh, someone is actually using these?  Awesome!  Good to know it's not
just me. :-)

BTW depending on the nature of your automation you might also want to
subscribe to SNS notifications of new AMIs:
	arn:aws:sns:us-east-1:782442783595:FreeBSDAMI

> I have one request though - in the release notes could we update the prose 
> stating you can get the AMI's from the parameter store to include a hint about 
> how to do it using the CLI?

Good idea.

> Perhaps it could be updated to something similar to:
> 
> "FreeBSD/aarch64 EC2 AMI IDs can be retrieved from the Systems Manager 
> Parameter Store via the AWS CLI by running the following command:
> 
> 'aws --region $REGION ssm get-parameter --name $KEY'
> 
> where $REGION is your desired AWS region, and $KEY is one of the following:"

Does this look good?

> FreeBSD/amd64 EC2 AMI IDs can be retrieved from the Systems Manager
> Parameter Store via the AWS CLI using the command
> 
>     % aws --region $REGION ssm get-parameter --name $KEY
> 
> where $REGION is the desired region and $KEY is one of the following keys:
> 
> 	/aws/service/freebsd/amd64/base/ufs/15.0/CURRENT
> 	/aws/service/freebsd/amd64/base/zfs/15.0/CURRENT
> 	/aws/service/freebsd/amd64/cloud-init/ufs/15.0/CURRENT
> 	/aws/service/freebsd/amd64/cloud-init/zfs/15.0/CURRENT
> 
> FreeBSD/aarch64 EC2 AMI IDs can be retrieved using the keys:
> 
> 	/aws/service/freebsd/arm64/base/ufs/15.0/CURRENT
> 	/aws/service/freebsd/arm64/base/zfs/15.0/CURRENT
> 	/aws/service/freebsd/arm64/cloud-init/ufs/15.0/CURRENT
> 	/aws/service/freebsd/arm64/cloud-init/zfs/15.0/CURRENT

I can make this change for next week's snapshot announcements.

-- 
Colin Percival
FreeBSD Release Engineering Lead & EC2 platform maintainer
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid