{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/10938","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/10938/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/10938/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/10938/events","html_url":"https://github.com/hashicorp/terraform/issues/10938","id":197827763,"number":10938,"title":"Error destroying aws cloudfront distribution","user":{"login":"johnpemberton","id":18496561,"avatar_url":"https://avatars.githubusercontent.com/u/18496561?v=3","gravatar_id":"","url":"https://api.github.com/users/johnpemberton","html_url":"https://github.com/johnpemberton","followers_url":"https://api.github.com/users/johnpemberton/followers","following_url":"https://api.github.com/users/johnpemberton/following{/other_user}","gists_url":"https://api.github.com/users/johnpemberton/gists{/gist_id}","starred_url":"https://api.github.com/users/johnpemberton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnpemberton/subscriptions","organizations_url":"https://api.github.com/users/johnpemberton/orgs","repos_url":"https://api.github.com/users/johnpemberton/repos","events_url":"https://api.github.com/users/johnpemberton/events{/privacy}","received_events_url":"https://api.github.com/users/johnpemberton/received_events","type":"User","site_admin":false},"labels":[{"id":85946957,"url":"https://api.github.com/repos/hashicorp/terraform/labels/bug","name":"bug","color":"f7c6c7","default":true},{"id":127939518,"url":"https://api.github.com/repos/hashicorp/terraform/labels/provider/aws","name":"provider/aws","color":"bfdadc","default":false},{"id":470086981,"url":"https://api.github.com/repos/hashicorp/terraform/labels/regression","name":"regression","color":"e11d21","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-12-28T10:04:07Z","updated_at":"2017-01-13T12:45:47Z","closed_at":null,"body":"I'm trying to destroy a cloudfront distribution created with terraform, however I'm getting an error \r\n\r\n```\r\nError applying plan:\r\n1 error(s) occurred:\r\n* aws_cloudfront_distribution.callback: InvalidArgument: The parameter Lambda function associations is required.\r\n```\r\n\r\n\r\nI've done a bit of digging and I wonder if this is related to the aws sdk 1.6.2 release where support for lambda function associations was introduced. (see references)\r\n\r\n### Terraform Version\r\nv0.82\r\n\r\nNote: I'm pretty sure the cloudfront distribution was created with v0.7.13.  v0.8.2 is the version I'm currently using to try to destroy it with.  Not had chance to check if this issue would occur if I was creating and destroying with the same version.\r\n\r\n### Affected Resource(s)\r\n- aws_cloudfront_distribution\r\n\r\n### Expected Behavior\r\nShould have destroyed the cloudfront distribution\r\n\r\n### Actual Behavior\r\nError `aws_cloudfront_distribution.callback: InvalidArgument: The parameter Lambda function associations is required.` \r\n\r\n### Steps to Reproduce\r\n1. create a cloudfront distribution with `terraform apply`\r\n2. try to delete it with `terraform destroy`\r\n\r\n### References\r\n\r\nhttps://github.com/aws/aws-sdk-go/releases/tag/v1.6.2"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/272435286","html_url":"https://github.com/hashicorp/terraform/issues/10938#issuecomment-272435286","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/10938","id":272435286,"user":{"login":"sebolabs","id":8235212,"avatar_url":"https://avatars.githubusercontent.com/u/8235212?v=3","gravatar_id":"","url":"https://api.github.com/users/sebolabs","html_url":"https://github.com/sebolabs","followers_url":"https://api.github.com/users/sebolabs/followers","following_url":"https://api.github.com/users/sebolabs/following{/other_user}","gists_url":"https://api.github.com/users/sebolabs/gists{/gist_id}","starred_url":"https://api.github.com/users/sebolabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebolabs/subscriptions","organizations_url":"https://api.github.com/users/sebolabs/orgs","repos_url":"https://api.github.com/users/sebolabs/repos","events_url":"https://api.github.com/users/sebolabs/events{/privacy}","received_events_url":"https://api.github.com/users/sebolabs/received_events","type":"User","site_admin":false},"created_at":"2017-01-13T12:45:47Z","updated_at":"2017-01-13T12:45:47Z","body":"+1, please fix"}}
{"actor":{"display_login":"sebolabs"}}