{"action":"created","issue":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/6700","repository_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws","labels_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/6700/labels{/name}","comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/6700/comments","events_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/6700/events","html_url":"https://github.com/terraform-providers/terraform-provider-aws/issues/6700","id":387218048,"node_id":"MDU6SXNzdWUzODcyMTgwNDg=","number":6700,"title":"ECS managed tags are not applied in AWS ","user":{"login":"buuren","id":2317188,"node_id":"MDQ6VXNlcjIzMTcxODg=","avatar_url":"https://avatars3.githubusercontent.com/u/2317188?v=4","gravatar_id":"","url":"https://api.github.com/users/buuren","html_url":"https://github.com/buuren","followers_url":"https://api.github.com/users/buuren/followers","following_url":"https://api.github.com/users/buuren/following{/other_user}","gists_url":"https://api.github.com/users/buuren/gists{/gist_id}","starred_url":"https://api.github.com/users/buuren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buuren/subscriptions","organizations_url":"https://api.github.com/users/buuren/orgs","repos_url":"https://api.github.com/users/buuren/repos","events_url":"https://api.github.com/users/buuren/events{/privacy}","received_events_url":"https://api.github.com/users/buuren/received_events","type":"User","site_admin":false},"labels":[{"id":794046655,"node_id":"MDU6TGFiZWw3OTQwNDY2NTU=","url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/labels/service/ecs","name":"service/ecs","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-04T10:29:31Z","updated_at":"2018-12-10T10:50:31Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### Terraform Version\r\n\r\n```# > terraform -v\r\nTerraform v0.11.10\r\n+ provider.aws v1.50.0\r\n+ provider.template v1.0.0\r\n```\r\n\r\n### Affected Resource(s)\r\n\r\n* aws_ecs_service\r\n\r\n### Terraform Configuration Files\r\n\r\n```hcl\r\nresource \"aws_ecs_service\" \"service\" {\r\n  name                               = \"${var.project}-${var.service[\"APPLICATION_TYPE\"]}\"\r\n  cluster                            = \"${data.terraform_remote_state.idms-services.ecs_cluster_arn}\"\r\n  task_definition                    = \"${aws_ecs_task_definition.task_definition.family}:${max(\"${aws_ecs_task_definition.task_definition.revision}\", \"${data.aws_ecs_task_definition.task_definition.revision}\")}\"\r\n  desired_count                      = \"${var.desired_count}\"\r\n  deployment_minimum_healthy_percent = 50\r\n  deployment_maximum_percent         = 200\r\n  enable_ecs_managed_tags            = true\r\n\r\n  ordered_placement_strategy {\r\n    type  = \"binpack\"\r\n    field = \"cpu\"\r\n  }\r\n\r\n  tags {\r\n    Name        = \"${var.project}-ecs-${var.environment}\"\r\n    role        = \"${var.service[\"APPLICATION_TYPE\"]}\"\r\n    project     = \"${var.project}\"\r\n    owner       = \"${var.owner}\"\r\n    department  = \"${var.department}\"\r\n    environment = \"${var.environment}\"\r\n    sla         = \"${var.sla}\"\r\n    created     = \"${var.created}\"\r\n  }\r\n}\r\n```\r\n\r\n### Debug Output\r\n\r\n``` aws_ecs_service.service\r\n      enable_ecs_managed_tags: \"false\" => \"true\"\r\n```\r\n### Actual Behavior\r\n\r\nenable_ecs_managed_tags does not  change to true\r\n\r\n### Steps to Reproduce\r\n\r\nRecently AWS added posibility to modify ECS resource tags. \r\n\r\nFeature request: https://github.com/terraform-providers/terraform-provider-aws/issues/6542\r\nCommit: https://github.com/terraform-providers/terraform-provider-aws/pull/6544/commits\r\nChangelog: https://github.com/terraform-providers/terraform-provider-aws/blob/master/CHANGELOG.md#1470-november-26-2018\r\n\r\nIt seems like it does not properly set the enable_ecs_managed_tags attribute\r\n\r\n1. create terraform template to create \"aws_ecs_service\" resource\r\n2. specify that you want to enable ecs managed tags by using \"enable_ecs_managed_tags            = true\"\r\n3. run terraform apply\r\n4. You cant see that option in UI, but you can run terraform apply again and will notice that terraform wants to change this value again, which means it was not properly added in the first terraform apply\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/comments/445772937","html_url":"https://github.com/terraform-providers/terraform-provider-aws/issues/6700#issuecomment-445772937","issue_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/6700","id":445772937,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTc3MjkzNw==","user":{"login":"buuren","id":2317188,"node_id":"MDQ6VXNlcjIzMTcxODg=","avatar_url":"https://avatars3.githubusercontent.com/u/2317188?v=4","gravatar_id":"","url":"https://api.github.com/users/buuren","html_url":"https://github.com/buuren","followers_url":"https://api.github.com/users/buuren/followers","following_url":"https://api.github.com/users/buuren/following{/other_user}","gists_url":"https://api.github.com/users/buuren/gists{/gist_id}","starred_url":"https://api.github.com/users/buuren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buuren/subscriptions","organizations_url":"https://api.github.com/users/buuren/orgs","repos_url":"https://api.github.com/users/buuren/repos","events_url":"https://api.github.com/users/buuren/events{/privacy}","received_events_url":"https://api.github.com/users/buuren/received_events","type":"User","site_admin":false},"created_at":"2018-12-10T10:50:31Z","updated_at":"2018-12-10T10:50:31Z","author_association":"CONTRIBUTOR","body":"Hello @tomelliff.\r\n\r\nI have opted-in for new ECS ARN's globally via root account a while back already. I'm sure that's not that the problem because otherwise terraform would throw an error that this particular option requires some changes on aws account side.\r\n\r\nIn my case, both plan and apply finishes successfully, but when when you view ecs_service metadata via amazon api, the necessary option remains intact."}}
{"actor":{"display_login":"buuren"}}