If I remember correctly this is how it works: You can't change product code. It is given when you upload a new AMI to the AWS Marketplace. That requires a Market place partnership with AWS. The product code follows the AMI (even if it's copied or create from a snapshot base on an instance launched from it). This ensure that all users of the software sold on the Marketplace pays for the usage.
On Thu, Oct 31, 2019, 22:17 John Roh <johnroh2...@gmail.com> wrote: > Hi, > > I have backed Centos AMI based on the AWS Marketplace which contains the > product codes. > I want to overwrite the product code that I used ami_product_codes :[ 'my > custom string' ] during the packer . build. > Is there any a better way to overwrite the existing product code? As > passing a string value in am_product_codes, I ran into the error message > saying "Error modify AMI attributes: InvalidParameterValue: Invalid value > 'my custom string' for productCode". > Is that meaning I can't update the existing ProductCode? > > John. > > -- > 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+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/packer-tool/dc8c0dd4-83db-4861-8baf-dbce733cd50f%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/dc8c0dd4-83db-4861-8baf-dbce733cd50f%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 packer-tool+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CALz9Rt-BAyXSMOToP7mYSRLHzMW%3Dr3_eXhdbHCyTUimrU%2BnYYA%40mail.gmail.com.