Skip to content

aws_ecs_service fails adding tags on resources created before AWS introduced tags on ECS #7373

@ebarault

Description

@ebarault

Terraform Version

Terraform v0.11.11
terraform-aws-provider 1.57.0

Affected Resource(s)

  • aws_ecs_service

Terraform Configuration Files

resource "aws_ecs_service" "example" {
  tags {
    tag1 = "value"
    tag2 = "value"
  }
}

Output

* aws_ecs_service.example: error tagging ECS Cluster (xxxxxxxx): InvalidParameterException: Long arn format must be used for tagging operations
	status code: 400, request id: xxxxxxxxxx

Expected Behavior

would create tags

Actual Behavior

fails with the above message

Steps to Reproduce

  1. Opt-in for

Log in as root account, and opt in for new ARN and resource ID format.

image

  1. Add tag to an ECS service created before AWS introduced tags on ECS services without the terraform aws_ecs_service module

  2. terraform apply

References

#6481

Metadata

Metadata

Assignees

No one assigned

    Labels

    service/ecsIssues and PRs that pertain to the ecs service.upstreamAddresses functionality related to the cloud provider.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions