Skip to content

Commit

Permalink
Use Amazon Linux 2 ECS AMI
Browse files Browse the repository at this point in the history
  • Loading branch information
PettitWesley committed Oct 23, 2018
1 parent aac7a13 commit 6adfbb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ecs-cli/modules/clients/aws/ssm/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6adfbb5

Please sign in to comment.