How can I copy AMI to another account?

26 views
Skip to first unread message

Karandeep Singh

unread,
Mar 29, 2019, 3:14:36 PM3/29/19
to Packer
Hi,
I have two AWS Account,
  1. Test Account
  2. Prod Account

I am creating an AMI using packer in Test Account and want to copy the AMI to the Prod after that.
How can I do that along with removing the actual AMI after the job is done?

Thanks,
Karandeep Singh. 

Rickard von Essen

unread,
Mar 30, 2019, 2:26:52 AM3/30/19
to packe...@googlegroups.com
To make a copy you have to use the aws cli or something else. Packer can't do that.

To just allow another account to use your ami use ami_users and add that accounts account number. 

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/15bd2f63-dc98-4e14-a3df-af9a2dab2bd1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages