From 2826c2eb036860bf7269d34b01aa24a9501752d4 Mon Sep 17 00:00:00 2001 From: Joseph Manley Date: Wed, 20 May 2020 15:30:01 -0400 Subject: [PATCH] Update ami --- top.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/top.yaml b/top.yaml index ab68ec4..f3605aa 100644 --- a/top.yaml +++ b/top.yaml @@ -14,6 +14,9 @@ Parameters: Environment: Type: String Description: Environment used in naming and tagging to associate with cluster + LatestAmiId : + Type : 'AWS::SSM::Parameter::Value' + Default: '/aws/service/ecs/optimized-ami/amazon-linux-2/recommended/image_id' Resources: EcsCluster: @@ -88,7 +91,7 @@ Resources: EcsInstanceLc: Type: AWS::AutoScaling::LaunchConfiguration Properties: - ImageId: ami-0f7919c33c90f5b58 + ImageId: !Ref LatestAmiId InstanceType: t2.micro AssociatePublicIpAddress: true IamInstanceProfile: !Ref EcsRoleInstaceProfile