Remove the hard coded ami, instead switch the image class for now to ECS_AL2023, which will accomplish the same goal

This commit is contained in:
Joshua C. Forest 2024-05-16 10:13:20 -04:00
commit 76725b4247

View file

@ -79,7 +79,6 @@ rBuildsEcsLaunchTemplate:
VolumeType: gp3
VolumeSize: 96
Encrypted: true
ImageId: ami-00d4cdb3bda21c6ed # This is al2023-ami-ecs-hvm-2023.0.20240430-kernel-6.1-x86_64
MetadataOptions:
HttpTokens: required
HttpPutResponseHopLimit: 2
@ -90,6 +89,8 @@ rBuildsBatchComputeEnvironment:
Type: MANAGED
ComputeResources:
AllocationStrategy: BEST_FIT_PROGRESSIVE
Ec2Configuration:
- ImageType: ECS_AL2023
LaunchTemplate:
LaunchTemplateId:
Ref: rBuildsEcsLaunchTemplate