-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws_imagebuilder_image_recipe ebs kms_key_id should allow KMS Key Aliases #16742
Comments
Hi @iancward. The easiest way to look this up is to use the data source data "aws_kms_alias" "ebs" {
name = "alias/aws/ebs"
} and access the ARN using I'm going to close this issue. If this does not resolve the problem, please open a new issue. |
Hi @gdavison the issue I reported is that, while Instead, it should use the criteria specified in the AWS API, which is string length between 1-1024 characters. Compare with |
Opened (effectively duplicate) issue #16757, as requested and provided the information from my comment above pinpointing the specific line of code where the bug exists and contrasting it with a property in a similar resource which uses the correct validation. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform v0.12.29
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Expected Behavior
I would expect Terraform to attempt creation of the Image Builder Pipeline. Based on my previous experience managing Image Builder resources with CloudFormation, the API will accept KMS Key Aliases as well as KMS Key ARNs.
Actual Behavior
I received an error stating that the provided value (
alias/aws/kms
) was not a valid ARN.Steps to Reproduce
terraform apply
Important Factoids
The AWS API documentation makes no mention of a specific KMS Key ARN requirement, only that the provided value should be between 1 and 1024 characters (inclusive).
References
The text was updated successfully, but these errors were encountered: