They should. What version of packer did you use? And what did you do to come the conclusion that the regional AMI's are not tagged?
If you rerun the build with PACKER_LOG=1 and post the full output here we can tell if there is something wrong. On Fri, Feb 8, 2019 at 3:28 PM <[email protected]> wrote: > my packer config is as below > I am passing list of destination regions as variables, though the ami is > copied the tags are not getting copied. > > copy_regions is list passed below. > > > { > "description": "packer recipe for copying the Qubole cluster image", > "variables" : { > "hvm_src_ami" : "", > "hvm_deeplearning_src_ami" : "", > "copy_regions": "" > }, > "builders": [ > { > "name": "copier-hvm", > "type": "amazon-ebs", > "region": "{{user `region`}}", > "source_ami": "{{user `hvm_src_ami`}}", > "instance_type": "m3.medium", > "ssh_username": "ec2-user", > "ssh_timeout": "15m", > "ami_name": "qbol-hvm-{{isotime \"2006-01-02 13-04-05\" | > clean_ami_name}}", > "ami_groups": ["all"], > "ami_regions": "{{user `copy_regions`}}", > "user_data_file": "scripts/base_amzn_cloud_config" > }, > > > > my packer command triggered > > ['packer build --only=copier-hvm', '-machine-readable', '-var > region=us-east-1', '-var hvm_src_ami=ami-xxxxx', '-var > copy_regions=ap-northeast-1', > '/media/ebs1/workspace/copy-cluster-ami-subcommand/ops/local/lib/python2.7/site-packages/qweez/packer/cluster/aws/release/copy_config.json'] > > > > > please suggest what is the solution. > > As per the packer documentation the tags should also be copied > > https://www.packer.io/docs/builders/amazon-ebs.html#ami_regions > > -- > 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/790465a8-c306-41b0-9f3b-07afe4a072eb%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/790465a8-c306-41b0-9f3b-07afe4a072eb%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/CALz9Rt8AF2EXzB69o9FAE-2askRwzASaWB_0A7%3Db2LiJzCmoZw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
