Thanks, I have modified code to achieve same, and for atleast my use case, it is working fine. https://github.com/hashicorp/packer/pull/8864/files
Thanks & Regards, Akhilesh On Tue, Mar 10, 2020 at 10:29 AM John Roh <[email protected]> wrote: > are you tagging your AMI? that way, even though ami name is different, you > can still search by tagging with the consistent name. > Or you can just share AMI if you don't need to build each time. When you > share an AMI with different accounts, AMI name doesn't need to be changed > and also you have the same consistent AMI id. > But when you share an AMI with different account, you need to provide the > tagging. > > John. > > On Mon, Mar 9, 2020 at 9:44 PM Akhilesh Verma <[email protected]> > wrote: > >> I have a use case to create same ami name with different account, so that >> another application form a ami name in given format and search it in a >> account. >> -Akhilesh >> >> On Tue, Mar 10, 2020 at 4:59 AM AndyB <[email protected]> wrote: >> >>> Why not Create unique ami name that uses date/time stamp? >>> >>> On Mon, 9 Mar 2020 at 19:21, Akhilesh Verma <[email protected]> >>> wrote: >>> >>>> Hi, >>>> Can we prevalidate an ami-name in a specific account? right now I am >>>> facing issues when I create the same name ami with two different accounts. >>>> Any help would be appreciated. >>>> >>>> Thanks, >>>> Akhilesh Verma >>>> >>>> -- >>>> 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/339187b9-d104-44d8-9d35-dc84a7753cf9%40googlegroups.com >>>> <https://groups.google.com/d/msgid/packer-tool/339187b9-d104-44d8-9d35-dc84a7753cf9%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- >>> 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/CAPkF%3DnERzuYXpYtMwcpBLG7f-UxrLacNRqwtXhoEDSiFPkKoEQ%40mail.gmail.com >>> <https://groups.google.com/d/msgid/packer-tool/CAPkF%3DnERzuYXpYtMwcpBLG7f-UxrLacNRqwtXhoEDSiFPkKoEQ%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- >> 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/CAE0U2XvDh%2BPh-iwhOo4damgbUsrg51zadXYHgvG4E6ngvZKy2A%40mail.gmail.com >> <https://groups.google.com/d/msgid/packer-tool/CAE0U2XvDh%2BPh-iwhOo4damgbUsrg51zadXYHgvG4E6ngvZKy2A%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- > 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/CAPxBRp4qEs8z_fo4OBYfw8q8cQr%2BtR6Yu4okEOtgv8gNCYQpZg%40mail.gmail.com > <https://groups.google.com/d/msgid/packer-tool/CAPxBRp4qEs8z_fo4OBYfw8q8cQr%2BtR6Yu4okEOtgv8gNCYQpZg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- 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/CAE0U2XtRbQGpMGRsbjV0k-ha-Pp8n7cdDfajcN3xrhiSyCJ4Hg%40mail.gmail.com.
