From 6adfbb5cb2c679c8479ef7abd966bc428b2baec0 Mon Sep 17 00:00:00 2001 From: Wesley Pettit Date: Tue, 23 Oct 2018 11:44:14 -0700 Subject: [PATCH] Use Amazon Linux 2 ECS AMI --- ecs-cli/modules/clients/aws/ssm/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ecs-cli/modules/clients/aws/ssm/client.go b/ecs-cli/modules/clients/aws/ssm/client.go index 7b659cc01..c0b18a69b 100644 --- a/ecs-cli/modules/clients/aws/ssm/client.go +++ b/ecs-cli/modules/clients/aws/ssm/client.go @@ -24,7 +24,7 @@ import ( ) const ( - amazonLinuxRecommendedParameterName = "/aws/service/ecs/optimized-ami/amazon-linux/recommended" + amazonLinux2RecommendedParameterName = "/aws/service/ecs/optimized-ami/amazon-linux-2/recommended" ) type AMIMetadata struct { @@ -55,7 +55,7 @@ func NewSSMClient(commandConfig *config.CommandConfig) Client { func (c *ssmClient) GetRecommendedECSLinuxAMI() (*AMIMetadata, error) { response, err := c.client.GetParameter(&ssm.GetParameterInput{ - Name: aws.String(amazonLinuxRecommendedParameterName), + Name: aws.String(amazonLinux2RecommendedParameterName), }) if err != nil { return nil, err