Closed matafc closed 1 year ago
@wyugue can you help us review this PR, please?
Updated. Please note the version is a little different between https://ap-northeast-1.console.aws.amazon.com/systems-manager/parameters/aws/service/ecs/optimized-ami/amazon-linux-2/recommended/image_id/description?region=ap-northeast-1 and https://ap-northeast-1.console.aws.amazon.com/systems-manager/parameters/aws/service/ecs/optimized-ami/amazon-linux-2/recommended/description?region=ap-northeast-1 but I'll use the parameter with more info, that is what the script is using.
@matafc
the version is a little different between
I think it's difference of ECS ami version and Amazon Linux2 ami version
"image_version":"2.0.20230428"
This is the ECS optimized ami version. It is updated when ECS agent or docker is updated. Sometimes it will be newere than the source_image_version.
"source_image_name":"amzn2-ami-minimal-hvm-2.0.20230418.0-x86_64-ebs"
This is the plain Amazon Linux2 version from which ECS optimized AMI was made.
This PR will update the AMIs of the container instances as described in this guide:
Amazon ECS-optimized AMIs - Amazon Elastic Container Service
ECS AMI SSM path: https://ap-northeast-1.console.aws.amazon.com/systems-manager/parameters/aws/service/ecs/optimized-ami/amazon-linux-2/recommended/image_id/description?region=ap-northeast-1
And it also updates the AMI for the bastion image.
Bastion AMI SSM path: https://ap-northeast-1.console.aws.amazon.com/systems-manager/parameters/aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-gp2/description?region=ap-northeast-1