I am building an AMI and copying it to another 3 regions and to another 3 accounts. The tags in the AMI are copied successfully along with the AMI to the another regions, but not the another accounts.
Copy the AMI to another regions, example:
ami_regions = ["us-east-1", "us-east-2", "us-west-2"]
Copy the AMI to another accounts, example:
ami_users = ["account_id_1", "account_id_2", "account_id_3"]
The AMI is created in the accounts account_id_1 in us-east-1, us-east-2, us-west-2 with the proper tags. The AMI is copied to account_id_2 and account_id_3 successfully, but the tags are not there.
Overview of the Issue
I am building an AMI and copying it to another 3 regions and to another 3 accounts. The tags in the AMI are copied successfully along with the AMI to the another regions, but not the another accounts.
Reproduction Steps
Creates a new AMI with the following snippet
Add the tags block:
Copy the AMI to another regions, example:
ami_regions = ["us-east-1", "us-east-2", "us-west-2"]
Copy the AMI to another accounts, example:
ami_users = ["account_id_1", "account_id_2", "account_id_3"]
The AMI is created in the accounts
account_id_1
inus-east-1
,us-east-2
,us-west-2
with the proper tags. The AMI is copied toaccount_id_2
and account_id_3 successfully, but the tags are not there.Plugin and Packer version
Plugin: version = ">= 1.2.6" Packer: 1.9.2