{"action":"created","issue":{"url":"https://api.github.com/repos/mitchellh/packer/issues/3399","repository_url":"https://api.github.com/repos/mitchellh/packer","labels_url":"https://api.github.com/repos/mitchellh/packer/issues/3399/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/packer/issues/3399/comments","events_url":"https://api.github.com/repos/mitchellh/packer/issues/3399/events","html_url":"https://github.com/mitchellh/packer/issues/3399","id":144522212,"number":3399,"title":"AMI Builder: force_deregister and ami_regions incompatibility","user":{"login":"etipton","id":1596401,"avatar_url":"https://avatars.githubusercontent.com/u/1596401?v=3","gravatar_id":"","url":"https://api.github.com/users/etipton","html_url":"https://github.com/etipton","followers_url":"https://api.github.com/users/etipton/followers","following_url":"https://api.github.com/users/etipton/following{/other_user}","gists_url":"https://api.github.com/users/etipton/gists{/gist_id}","starred_url":"https://api.github.com/users/etipton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etipton/subscriptions","organizations_url":"https://api.github.com/users/etipton/orgs","repos_url":"https://api.github.com/users/etipton/repos","events_url":"https://api.github.com/users/etipton/events{/privacy}","received_events_url":"https://api.github.com/users/etipton/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mitchellh/packer/labels/builder/amazon","name":"builder/amazon","color":"d4c5f9"},{"url":"https://api.github.com/repos/mitchellh/packer/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-30T09:48:19Z","updated_at":"2016-04-21T16:57:26Z","closed_at":null,"body":"It seems that the `force_deregister` option doesn't work with the `ami_regions` option when copying the original AMI to other regions.\r\n\r\n@catsby can you confirm? Tagging you because: https://github.com/mitchellh/packer/issues/1873\r\n\r\nIf it's not a simple oversight (and a deeper issue), then I'll follow the guidelines for submitting an issue (log output, etc, etc).\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/mitchellh/packer/issues/comments/213015427","html_url":"https://github.com/mitchellh/packer/issues/3399#issuecomment-213015427","issue_url":"https://api.github.com/repos/mitchellh/packer/issues/3399","id":213015427,"user":{"login":"lorengordon","id":8457307,"avatar_url":"https://avatars.githubusercontent.com/u/8457307?v=3","gravatar_id":"","url":"https://api.github.com/users/lorengordon","html_url":"https://github.com/lorengordon","followers_url":"https://api.github.com/users/lorengordon/followers","following_url":"https://api.github.com/users/lorengordon/following{/other_user}","gists_url":"https://api.github.com/users/lorengordon/gists{/gist_id}","starred_url":"https://api.github.com/users/lorengordon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorengordon/subscriptions","organizations_url":"https://api.github.com/users/lorengordon/orgs","repos_url":"https://api.github.com/users/lorengordon/repos","events_url":"https://api.github.com/users/lorengordon/events{/privacy}","received_events_url":"https://api.github.com/users/lorengordon/received_events","type":"User","site_admin":false},"created_at":"2016-04-21T16:57:26Z","updated_at":"2016-04-21T16:57:26Z","body":"I'm running into this as well. `force_deregister` does not remove AMIs with the same AMI name from regions specified in the `ami_regions` parameter.\r\n\r\nI went ahead and created a [gist](https://gist.github.com/lorengordon/8d55cdf951fbcc711987717506288ec2) with the minimal template and packer build logs from two runs. First run creates the AMIs, second run show the AMI being deregistered in `aws_region` but not in `ami_regions`."}}