{"action":"opened","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/11471","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/11471/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/11471/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/11471/events","html_url":"https://github.com/hashicorp/terraform/issues/11471","id":203707499,"number":11471,"title":"AWS: ECS Placement constraints should not set expression to empty string","user":{"login":"tecnobrat","id":145406,"avatar_url":"https://avatars.githubusercontent.com/u/145406?v=3","gravatar_id":"","url":"https://api.github.com/users/tecnobrat","html_url":"https://github.com/tecnobrat","followers_url":"https://api.github.com/users/tecnobrat/followers","following_url":"https://api.github.com/users/tecnobrat/following{/other_user}","gists_url":"https://api.github.com/users/tecnobrat/gists{/gist_id}","starred_url":"https://api.github.com/users/tecnobrat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tecnobrat/subscriptions","organizations_url":"https://api.github.com/users/tecnobrat/orgs","repos_url":"https://api.github.com/users/tecnobrat/repos","events_url":"https://api.github.com/users/tecnobrat/events{/privacy}","received_events_url":"https://api.github.com/users/tecnobrat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-27T18:35:30Z","updated_at":"2017-01-27T18:35:30Z","closed_at":null,"body":"Hello\r\n\r\nThis is on terraform 0.8.5\r\n\r\n`placement_constraints` `expression` should not be supplied when you set `placement_constraints` `type` to `distinctInstance`\r\n\r\nMy code looks like:\r\n\r\n```\r\nresource \"aws_ecs_service\" \"services\" {\r\n  ...\r\n\r\n  placement_constraints {\r\n    type = \"distinctInstance\"\r\n  }\r\n```\r\n\r\nThe plan looks like:\r\n\r\n```\r\n+ aws_ecs_service.services\r\n    cluster:                                     \"arn:aws:ecs:us-east-1:...:cluster/peer\"\r\n    deployment_maximum_percent:                  \"100\"\r\n    deployment_minimum_healthy_percent:          \"0\"\r\n    desired_count:                               \"10\"\r\n    name:                                        \"peer-host-service\"\r\n    placement_constraints.#:                     \"1\"\r\n    placement_constraints.2067840941.expression: \"\"\r\n    placement_constraints.2067840941.type:       \"distinctInstance\"\r\n    task_definition:                             \"arn:aws:ecs:us-east-1:...:task-definition/peer-host:2\"\r\n```\r\n\r\nWhich then causes this error:\r\n\r\n```\r\n* aws_ecs_service.services: InvalidParameterException: distinctInstance expression should not be specified.\r\n    status code: 400, request id: c663b166-e4be-11e6-bbba-1b56bbc9f9ee\r\n```"}}
{"actor":{"display_login":"tecnobrat"}}