hashicorp / packer-plugin-amazon

Packer plugin for Amazon AMI Builder
https://www.packer.io/docs/builders/amazon
Mozilla Public License 2.0
76 stars 112 forks source link

"arn:aws-cn:kms:cn-north-1:xxxxxxxxxxxx:alias/my-alias" is not a valid KMS Key Id. #356

Closed hc-github-team-packer closed 1 year ago

hc-github-team-packer commented 1 year ago

This issue was originally opened by @christian-ertl in https://github.com/hashicorp/packer/issues/12332 and has been migrated to this repository. The original issue description is below.


Community Note

Overview of the Issue

We are trying to build an image with amazon-ebs and use an KMS key alias from another account, requiring the full ARN, like "arn:aws-cn:kms:cn-north-1:xxxxxxxxxxxx:alias/my-alias".

This seems to be the same kind of problem as in #7640, but with an ARN from the AWS-CN partition.

Packer version

Log Fragments and crash.log files


* "arn:aws-cn:kms:cn-north-1:xxxxxxxxxxxx:alias/my-alias" is not a valid KMS Key Id.
* "arn:aws-cn:kms:cn-north-1:xxxxxxxxxxxx:alias/my-alias" is not a valid KMS Key Id.