{"action":"closed","issue":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/2270","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/2270/labels{/name}","comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/2270/comments","events_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/2270/events","html_url":"https://github.com/terraform-providers/terraform-provider-aws/issues/2270","id":273639294,"node_id":"MDU6SXNzdWUyNzM2MzkyOTQ=","number":2270,"title":"Updating network_interface_id in aws_route fails","user":{"login":"lethalpaga","id":11941903,"node_id":"MDQ6VXNlcjExOTQxOTAz","avatar_url":"https://avatars0.githubusercontent.com/u/11941903?v=4","gravatar_id":"","url":"https://api.github.com/users/lethalpaga","html_url":"https://github.com/lethalpaga","followers_url":"https://api.github.com/users/lethalpaga/followers","following_url":"https://api.github.com/users/lethalpaga/following{/other_user}","gists_url":"https://api.github.com/users/lethalpaga/gists{/gist_id}","starred_url":"https://api.github.com/users/lethalpaga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lethalpaga/subscriptions","organizations_url":"https://api.github.com/users/lethalpaga/orgs","repos_url":"https://api.github.com/users/lethalpaga/repos","events_url":"https://api.github.com/users/lethalpaga/events{/privacy}","received_events_url":"https://api.github.com/users/lethalpaga/received_events","type":"User","site_admin":false},"labels":[{"id":620316239,"node_id":"MDU6TGFiZWw2MjAzMTYyMzk=","url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/labels/bug","name":"bug","color":"f7c6c7","default":true},{"id":794043766,"node_id":"MDU6TGFiZWw3OTQwNDM3NjY=","url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/labels/service/ec2","name":"service/ec2","color":"bfd4f2","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-11-14T01:42:31Z","updated_at":"2018-08-30T16:39:14Z","closed_at":"2018-08-30T16:39:14Z","author_association":"NONE","body":"### Terraform Version\r\nTerraform v0.10.8\r\nprovider.aws 1.2.0\r\n\r\n### Affected Resource(s)\r\n- aws_route\r\n\r\n### Terraform Configuration Files\r\nConfig 1:\r\n```hcl\r\nprovider \"aws\" {\r\n  version             = \"~>1.2.0\"\r\n}\r\n\r\nresource \"aws_route\" \"route_to_eni\" {\r\n  route_table_id         = \"rtb-ba9acbbb\"\r\n  destination_cidr_block = \"1.2.3.0/24\"\r\n\r\n  network_interface_id = \"eni-35cadddd\"\r\n}\r\n```\r\nConfig 2 (updated network_interface_id):\r\n```hcl\r\nprovider \"aws\" {\r\n  version             = \"~>1.2.0\"\r\n}\r\n\r\nresource \"aws_route\" \"route_to_eni\" {\r\n  route_table_id         = \"rtb-ba9acbbb\"\r\n  destination_cidr_block = \"1.2.3.0/24\"\r\n\r\n  network_interface_id = \"eni-35cadddd\"\r\n}\r\n```\r\n\r\n### Debug Output\r\nhttps://gist.github.com/lethalpaga/28714fe7180b2debce09489c77ba1556\r\n\r\n### Expected Behavior\r\nThe route should have been updated with the new ENI id\r\n\r\n### Actual Behavior\r\nThe apply fails with\r\n```\r\n* aws_route.route_to_eni: InvalidInstanceID: There are multiple interfaces attached to instance 'i-0ec77fe2cdde1'. Please specify an interface ID for the operation instead.\r\n\tstatus code: 400, request id: 060b4661-c5e8-4254-92c0-ac1d13f21df7\r\n```\r\n\r\n### Steps to Reproduce\r\n\r\n1. `terraform apply` with config1 to create the route\r\n2. `terraform apply` with config2 to attempt updating it\r\n\r\n### Important Factoids\r\n\r\n* The route creation works fine. Updating it fails.\r\n* In both config1 and config2 the ENI is attached to an instance that has 2 network interfaces attached.\r\n\r\n### References\r\n- Possibly related to GH-1426\r\n"}}
{"actor":{"display_login":"bflad"}}