{"action":"created","issue":{"url":"https://api.github.com/repos/mitchellh/packer/issues/2172","labels_url":"https://api.github.com/repos/mitchellh/packer/issues/2172/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/packer/issues/2172/comments","events_url":"https://api.github.com/repos/mitchellh/packer/issues/2172/events","html_url":"https://github.com/mitchellh/packer/issues/2172","id":85001477,"number":2172,"title":"copying ami across regions with the error \"missing required parameter: Name\"","user":{"login":"henrysher","id":65181,"avatar_url":"https://avatars.githubusercontent.com/u/65181?v=3","gravatar_id":"","url":"https://api.github.com/users/henrysher","html_url":"https://github.com/henrysher","followers_url":"https://api.github.com/users/henrysher/followers","following_url":"https://api.github.com/users/henrysher/following{/other_user}","gists_url":"https://api.github.com/users/henrysher/gists{/gist_id}","starred_url":"https://api.github.com/users/henrysher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henrysher/subscriptions","organizations_url":"https://api.github.com/users/henrysher/orgs","repos_url":"https://api.github.com/users/henrysher/repos","events_url":"https://api.github.com/users/henrysher/events{/privacy}","received_events_url":"https://api.github.com/users/henrysher/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mitchellh/packer/labels/bug","name":"bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/mitchellh/packer/labels/builder/amazon","name":"builder/amazon","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-04T09:24:48Z","updated_at":"2015-06-04T15:42:33Z","closed_at":null,"body":"I met this problem using the packer build in **master** branch with the default packer configuration in README:\r\n```json\r\n{\r\n  \"builders\": [{\r\n    \"type\": \"amazon-ebs\",\r\n    \"access_key\": \"XXXXX\", \r\n    \"secret_key\": \"XXXXXXXXXXXXXX\",\r\n    \"region\": \"us-east-1\",\r\n    \"source_ami\": \"ami-de0d9eb7\",\r\n    \"instance_type\": \"t1.micro\",\r\n    \"ssh_username\": \"ubuntu\",\r\n    \"ami_regions\": [ \"us-east-1\", \"us-west-2\" ],\r\n    \"ami_name\": \"packer-example {{timestamp}}\"\r\n  }]\r\n}\r\n```\r\n```\r\n==> amazon-ebs: * Error Copying AMI (ami-6945aa45) to region (us-west-2): InvalidParameter: 1 validation errors:\r\n==> amazon-ebs: - missing required parameter: Name\r\n```\r\nAfter looking into the [AWS API: CopyImage](http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CopyImage.html), it seems \"**Name**\" parameter now required.\r\nHowever, the code for ami copy does not take the name parameter: https://github.com/mitchellh/packer/blob/master/builder/amazon/common/step_ami_region_copy.go\r\n```python\r\n\tregionconn := ec2.New(awsConfig)\r\n\tresp, err := regionconn.CopyImage(&ec2.CopyImageInput{\r\n\t\tSourceRegion:  &source,\r\n\t\tSourceImageID: &imageId,\r\n\t})\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mitchellh/packer/issues/comments/108940538","html_url":"https://github.com/mitchellh/packer/issues/2172#issuecomment-108940538","issue_url":"https://api.github.com/repos/mitchellh/packer/issues/2172","id":108940538,"user":{"login":"henrysher","id":65181,"avatar_url":"https://avatars.githubusercontent.com/u/65181?v=3","gravatar_id":"","url":"https://api.github.com/users/henrysher","html_url":"https://github.com/henrysher","followers_url":"https://api.github.com/users/henrysher/followers","following_url":"https://api.github.com/users/henrysher/following{/other_user}","gists_url":"https://api.github.com/users/henrysher/gists{/gist_id}","starred_url":"https://api.github.com/users/henrysher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henrysher/subscriptions","organizations_url":"https://api.github.com/users/henrysher/orgs","repos_url":"https://api.github.com/users/henrysher/repos","events_url":"https://api.github.com/users/henrysher/events{/privacy}","received_events_url":"https://api.github.com/users/henrysher/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T15:42:33Z","updated_at":"2015-06-04T15:42:33Z","body":"@mitchellh add a new name parameter in user's configuration, or the same name as the original AMI one, what do you prefer?"}}