Error:
aws_ecs_service.atlantis: Creating...
Error: InvalidParameterException: The new ARN and resource ID format must be enabled to add tags to the service. Opt in to the new format and try again. "atlantis"
Solution - enable new features in AWS account:
aws ecs put-account-setting-default --name serviceLongArnFormat --value enabled --region eu-west-1
aws ecs put-account-setting-default --name containerInsights --value enabled --region eu-west-1
aws ecs put-account-setting-default --name taskLongArnFormat --value enabled --region eu-west-1
aws ecs put-account-setting-default --name containerInstanceLongArnFormat --value enabled --region eu-west-1
aws ecs put-account-setting-default --name awsvpcTrunking --value enabled --region eu-west-1
Verification (all should be enabled):
$ aws ecs list-account-settings --effective-settings
{
"settings": [
{
"name": "awsvpcTrunking",
"value": "enabled",
"principalArn": "arn:aws:iam::152235879155:root"
},
{
"name": "containerInsights",
"value": "enabled",
"principalArn": "arn:aws:iam::152235879155:root"
},
{
"name": "containerInstanceLongArnFormat",
"value": "enabled",
"principalArn": "arn:aws:iam::152235879155:root"
},
{
"name": "serviceLongArnFormat",
"value": "enabled",
"principalArn": "arn:aws:iam::152235879155:root"
},
{
"name": "taskLongArnFormat",
"value": "enabled",
"principalArn": "arn:aws:iam::152235879155:root"
}
]
}