terraform-provider-aws: KMS doesn't work with newest verision of provider
Community Note
- Please vote on this issue by adding a π reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave β+1β or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform CLI and Terraform AWS Provider Version
0.14.7
Affected Resource(s)
- aws_kms_key
Terraform Configuration Files
tested with below aws providers: 3.49 - works 3.53 - does not work 3.54 - does not work
Debug Output
Panic Output
Expected Behavior
aws_iam_policy.kms: Creation complete after 1s [id=arn:aws:iam::.....]
Actual Behavior
Error: error waiting for KMS Key (...) policy propagation: timeout while waiting for state to become 'TRUE' (last state: 'FALSE', timeout: 2m0s)
on kms.tf line 1, in resource "aws_kms_key" "tg":
1: resource "aws_kms_key" "tg" {
Steps to Reproduce
terraform apply
Important Factoids
References
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 18
- Comments: 20
Heya @oaksenov
Opened #21225 to continue the discussion.
Iβm also still seeing this error in 3.60
Iβm still seeing this error with 3.59.0. (Terraform 1.0.2).
we should probably open new issue as this issue is closed and I doubt anybody is paying attention to the chat in closed issues
Still seeing this error in 3.61.
Issue was:
Tried removing the second statement in the policy (leaving just the account lockout statement) and it created the key w/ policy.
Tried making an update to the policy by adding second statement back but apply operation fails to complete successfully, same errors as above.
I am also seeing the same⦠I had to go back to 3.52 again.
Also 3.58.0 is affected somehow in different combinations but not all the time. It seems that setting
enable_key_rotationand providingtagscauses a problem.See test scenarios below:
Working 1 (description only)
Working 2 (description AND tags)
Working 3 (description, enable_key_rotation, NO tags)
Working 4 (description, enable_key_rotation, policy, NO tags)
Not working 1 (description, enable_key_rotation and tags)
Not working 2 (description, enable_key_rotation, tags and policy):