-
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
KMS keys are being rebuilt every time #720
Comments
Copying my comment from the earlier ticket as well: I'm seeing this on a kms key w/ policy as well (TF 0.8.8). Policy was generated via KMS key creation form in AWS console: Terraform plan:
Terraform resource definition:
|
Hmm. I've definitely run into this before as well, albeit with even |
For what its worth, I tried putting the aws_kms_key policies (using the |
I'm coming across this now with Terraform v0.11.2 |
Also having this problem with v0.11.2 aws v1.11.0 EDIT: figured out my problem - policy accepts just account ID but modifies it to the account id ARN -- the new plan always says this is non-matching and needs to make it just the account ID again. |
Hi folks! 👋 This issue was marked to close in #3832 due to a dependency update to an upstream library we use to compare the equivalence of two IAM policies: https://github.com/jen20/awspolicyequivalence/. The updated library should now treat account ID This update will be released in v1.12.0 of the AWS provider, which we expect to release later this week. I apologize this may not cover all IAM policy equivalence issues, but please do consider opening new Github issues in the https://github.com/terraform-providers/terraform-provider-aws/ or https://github.com/jen20/awspolicyequivalence/ for other specific examples that show as inequivalent. |
This has been released in version 1.12.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
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! |
This issue was originally opened by @FransUrbo as hashicorp/terraform#13973. It was migrated here as part of the provider split. The original body of the issue is below.
I'm having my
aws_kms_key
rebuilt every time TF runs.Terraform Version
0.9.1
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Expected Behavior
Not being rebuilt, there's no change.
Actual Behavior
Rebuilt every time.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
Solution
The text was updated successfully, but these errors were encountered: