Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

KMS Alias with RDS or Elasticache causes forced recreation #25713

Open
autarchprinceps opened this issue Jul 6, 2022 · 1 comment
Open

KMS Alias with RDS or Elasticache causes forced recreation #25713

autarchprinceps opened this issue Jul 6, 2022 · 1 comment
Labels
bug Addresses a defect in current functionality. service/elasticache Issues and PRs that pertain to the elasticache service. service/rds Issues and PRs that pertain to the rds service.

Comments

@autarchprinceps
Copy link

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

Terraform 1.2.3
AWS Provider 4.21.0

Affected Resource(s)

  • aws_elasticache_replication_group
  • aws_rds_cluster

Terraform Configuration Files

~ kms_key_id = "arn:aws:kms:region:account:key/key_id" -> "arn:aws:kms:region:account:alias/alias_name" # forces replacement

Expected Behavior

The key id is equivalent to the alias and therefore no change is necessary.

Actual Behavior

Database / cache group is completely deleted and then created again.
FYI: For s3 buckets it works correctly with the same alias without forcing changes.

@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. service/elasticache Issues and PRs that pertain to the elasticache service. service/rds Issues and PRs that pertain to the rds service. labels Jul 6, 2022
@justinretzolk justinretzolk added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels Jul 6, 2022
@keruzu
Copy link

keruzu commented Jul 28, 2022

Same issue, slightly different symptom:

~ resource "aws_dynamodb_table" "my_table_name" {
~ server_side_encryption {
~ kms_key_arn = "arn:aws:kms:us-east-1::key/" -> "arn:aws:kms:us-east-1::alias/"
# (1 unchanged attribute hidden)
}

Error: error updating DynamoDB Table (my_table_name) SSE: LimitExceededException: Subscriber limit exceeded: Encryption mode changes are limited in the 24h window ending at xxxx. After the first 4 change, each subsequent change in the same window can be performed at most once every 21600 seconds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Addresses a defect in current functionality. service/elasticache Issues and PRs that pertain to the elasticache service. service/rds Issues and PRs that pertain to the rds service.
Projects
None yet
Development

No branches or pull requests

3 participants