Skip to content

Commit bbcc865

Browse files
committed
Use Amazon Linux 2 ECS AMI
1 parent ad68bda commit bbcc865

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ecs-cli/modules/clients/aws/ssm/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
)
2525

2626
const (
27-
amazonLinuxRecommendedParameterName = "/aws/service/ecs/optimized-ami/amazon-linux/recommended"
27+
amazonLinux2RecommendedParameterName = "/aws/service/ecs/optimized-ami/amazon-linux-2/recommended"
2828
)
2929

3030
type AMIMetadata struct {
@@ -55,7 +55,7 @@ func NewSSMClient(commandConfig *config.CommandConfig) Client {
5555

5656
func (c *ssmClient) GetRecommendedECSLinuxAMI() (*AMIMetadata, error) {
5757
response, err := c.client.GetParameter(&ssm.GetParameterInput{
58-
Name: aws.String(amazonLinuxRecommendedParameterName),
58+
Name: aws.String(amazonLinux2RecommendedParameterName),
5959
})
6060
if err != nil {
6161
return nil, err

0 commit comments

Comments
 (0)