-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Fix #12555: Error "grant not found for key id" #12560
Conversation
When a KMS grant was not found, terraform apply failed during refreshing state with an error "grant not found for key id". Now, when a KMS grant is not found, it is treated as revoked and terraform shows the change in the plan and recreates it during apply.
☝️ Fixed simple merge conflict since we just merged another PR affecting that file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-Authored-By: Brian Flad <[email protected]>
@bflad thanks for your comments. I've updated the PR and re-run integration tests ✅. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks @dshkyra for the update and of course the fix! 🚀
Output from acceptance testing:
--- PASS: TestAccAWSKmsGrant_Basic (36.00s)
--- PASS: TestAccAWSKmsGrant_ARN (43.76s)
--- PASS: TestAccAWSKmsGrant_bare (44.22s)
--- PASS: TestAccAWSKmsGrant_withRetiringPrincipal (44.30s)
--- PASS: TestAccAWSKmsGrant_withConstraints (50.11s)
--- PASS: TestAccAWSKmsGrant_disappears (233.92s)
This has been released in version 2.56.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
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! |
When a KMS grant was not found, terraform apply failed during
refreshing state with an error "grant not found for key id".
Now, when a KMS grant is not found, it is treated as revoked and
terraform shows the change in the plan and recreates it during apply.
Community Note
Closes #12555
Release note for CHANGELOG:
Output from acceptance testing: