{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/5934","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/5934/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/5934/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/5934/events","html_url":"https://github.com/hashicorp/terraform/issues/5934","id":144731219,"number":5934,"title":"Changing aws_elb internal state when ELB has an associated aws_proxy_protocol results in broken state","user":{"login":"nosmo","id":68673,"avatar_url":"https://avatars.githubusercontent.com/u/68673?v=3","gravatar_id":"","url":"https://api.github.com/users/nosmo","html_url":"https://github.com/nosmo","followers_url":"https://api.github.com/users/nosmo/followers","following_url":"https://api.github.com/users/nosmo/following{/other_user}","gists_url":"https://api.github.com/users/nosmo/gists{/gist_id}","starred_url":"https://api.github.com/users/nosmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nosmo/subscriptions","organizations_url":"https://api.github.com/users/nosmo/orgs","repos_url":"https://api.github.com/users/nosmo/repos","events_url":"https://api.github.com/users/nosmo/events{/privacy}","received_events_url":"https://api.github.com/users/nosmo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hashicorp/terraform/labels/bug","name":"bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/hashicorp/terraform/labels/provider/aws","name":"provider/aws","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-03-30T21:55:58Z","updated_at":"2016-06-29T17:58:38Z","closed_at":null,"body":"When changing the state of an `aws_elb` object with an associated `aws_proxy_protocol` object, the `apply` will successfully change the internal state of the `aws_elb` object without issue. Subsequent applies will attempt to update the configuration of the associated `aws_proxy_protocol`s from a null configuration to the desired state, which seems to indicate that the reconfigured elb no longer has a proxy protocol configured. This change will fail as it seems there is no existing associated proxy protocol after the `internal` change: \r\n\r\n```\r\n* aws_proxy_protocol_policy.my_extlb: Error setting policy for backend: PolicyNotFound: There is no policy with name TFEnableProxyProtocol for load balancer my-elb\r\n        status code: 400, request id: 981a012d-f6c1-11e5-aae6-4bff236498\r\n```\r\n\r\nEditing the terraform.tfstate file to remove the corresponding `aws_proxy_protocol` entries results in the creation of the proxy protocol rules and a successful apply, with the final tfstate file's `aws_proxy_protocol` entries being identical to the ones present when the apply was failing to locate the TFEnableProxyProtocol entries. "},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/229436987","html_url":"https://github.com/hashicorp/terraform/issues/5934#issuecomment-229436987","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/5934","id":229436987,"user":{"login":"plombardi89","id":893096,"avatar_url":"https://avatars.githubusercontent.com/u/893096?v=3","gravatar_id":"","url":"https://api.github.com/users/plombardi89","html_url":"https://github.com/plombardi89","followers_url":"https://api.github.com/users/plombardi89/followers","following_url":"https://api.github.com/users/plombardi89/following{/other_user}","gists_url":"https://api.github.com/users/plombardi89/gists{/gist_id}","starred_url":"https://api.github.com/users/plombardi89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plombardi89/subscriptions","organizations_url":"https://api.github.com/users/plombardi89/orgs","repos_url":"https://api.github.com/users/plombardi89/repos","events_url":"https://api.github.com/users/plombardi89/events{/privacy}","received_events_url":"https://api.github.com/users/plombardi89/received_events","type":"User","site_admin":false},"created_at":"2016-06-29T17:58:38Z","updated_at":"2016-06-29T17:58:38Z","body":"Just ran into this as well. Had to go grab the TF state file out of S3. Remove the offending JSON and then re upload. Annoying"}}
{"actor":{"display_login":"plombardi89"}}