From 0f885c3fd13db7576eda28ef4ad5246c71e0e1cc Mon Sep 17 00:00:00 2001 From: Hironsan Date: Wed, 9 Sep 2020 14:32:43 +0900 Subject: [PATCH] Update cloudformation template to fix #957 --- template.aws.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/template.aws.yaml b/template.aws.yaml index a0cc08f4..37e28d78 100644 --- a/template.aws.yaml +++ b/template.aws.yaml @@ -25,6 +25,9 @@ Parameters: - t2.medium - t2.large ConstraintDescription: must be a valid EC2 instance type. + LatestAmiId: + Type: 'AWS::SSM::Parameter::Value' + Default: '/aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-gp2' Metadata: AWS::CloudFormation::Interface: @@ -119,7 +122,7 @@ Resources: - 0 - Fn::GetAZs: { Ref: "AWS::Region" } KeyName: !Ref KeyName - ImageId: ami-0873b46c45c11058d + ImageId: !Ref LatestAmiId InstanceType: !Ref InstanceType Monitoring: true SecurityGroupIds: