-
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
[Bug]: data aws_kms_key cannot recognize key_id via ARN, only via ALIAS ARN (bug in 4.53.0?) #29248
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Relevant code modified in #29189. |
This appears to be due to the key_id validation occurring when using Reference code links: However, Multi Region keys don't conform to that pattern and have a distinctive prefix Might be best to flexibly validate both single region and multi region KMS key id patterns. |
We are getting an error in CI from an acceptance test:
and I get a similar error if I use an MRK's ARN as |
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. |
Terraform Core Version
0.13.7
AWS Provider Version
4.53.0
Affected Resource(s)
data "aws_kms_key"
Expected Behavior
We use this construction for many years successfully:
It should return data about object.
Actual Behavior
Relevant Error/Panic Output Snippet
For some reason, it won't work with any other option.
This works up to 4.52.0.
The text was updated successfully, but these errors were encountered: