-
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
RDS instances try to be recreated when associated with a KMS Alias #229
Comments
+1 |
+1 facing the same issue. Does someone found a workaround? |
I also have this issue |
+1 |
1 similar comment
+1 |
Hi everyone 👋 Since this issue was raised awhile ago, both the For some additional context, the maintainers do not intend to directly support KMS Alias ARNs due to how the AWS APIs always return the KMS Key ID. Since Terraform performs drift detection with configured values against the value stored in the Terraform state when refreshed by the resource, this difference would always show unless we introduced additional cross-service API calls to every resource that supports this parameter. This API call would occur every Terraform plan for every resource and could dramatically affect account-level KMS rate limiting along with permissions issues for restrictive environments. Given these operational concerns, we prefer to recommend the If the documentation around this can be improved, please reach out. |
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 @rcostanzo as hashicorp/terraform#8259. It was migrated here as part of the provider split. The original body of the issue is below.
You can properly create a RDS instance with the KMS Alias ARN as the kms_key_id, but subsequent runs then want to recreate that resource because the AWS returned value is the actual KMS Key's ARN, not the Alias's.
Terraform Version
0.7.0
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
No changes should be detected
Actual Behavior
Terraform detects that the KMS Key changed and wants to recreate the RDS db resource:
kms_key_id: "arn:aws:kms:stuff:key/keyid" => "arn:aws:kms:stuff:alias/key-rds-qa" (forces new resource)
Steps to Reproduce
The text was updated successfully, but these errors were encountered: