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. On Fri, Mar 29, 2019, 20:14 Karandeep Singh <[email protected]> wrote: > 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. > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/packer-tool/15bd2f63-dc98-4e14-a3df-af9a2dab2bd1%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/15bd2f63-dc98-4e14-a3df-af9a2dab2bd1%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CALz9Rt-7UOZ3OQNkOTgMZUnUu04Lr30yQkhxHUUChP%2BEThLgSQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
