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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error waiting for KMS Key tag propagation: timeout while waiting for state to become 'TRUE' -- KMS tag bug #26174

Closed
arzietlow opened this issue Aug 8, 2022 · 5 comments · Fixed by #33167
Labels
bug Addresses a defect in current functionality. service/kms Issues and PRs that pertain to the kms service.
Milestone

Comments

@arzietlow
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 Version: v0.13.4
Terraform AWS Provider version: 4.9.0

Affected Resource(s)

  • aws_kms_key

Terraform Configuration Files

locals {  
  test_tags = {
    "tagkey2"          = "Tagvalue2"
    "addTagtest1"      = "addTagtest1"
  }
}

resource "aws_kms_key" "tag_timeout_test" {
  tags                    = local.test_tags
}

Debug Output

Gist here

Expected Behavior

Terraform updates the KMS key's tags without producing a timeout error

Actual Behavior

Terraform times out after 10 minutes

Steps to Reproduce

  1. Add or remove tags on an existing KMS key managed by terraform
  2. terraform apply

References

Related to issue #23592 where the solution back then was to increase the timeout from 5m to 10m

Note: a location in S3 is the backend used for the statefile

@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. service/kms Issues and PRs that pertain to the kms service. labels Aug 8, 2022
@breathingdust breathingdust added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels Aug 18, 2022
@Snowisnticecream
Copy link

Is there any update on this one? Our teams run into this on almost a daily basis and it feels like it is starting to happen more due to the number of reports we are seeing. It would be great if the limit was increased again or if the underlying problem was resolved. Currently teams have their pipelines fail regularly due to this and then need to run a fresh pipeline and new TF Apply that then passes.

@DTTerastar
Copy link
Contributor

It waited 10 minutes, timed out ran it again and it didn't even try and change the tags. So it's like it's doing it but doesn't realize it.

@Wolfsrudel
Copy link

+1 due to running into the same problem.
In my case it's happening when trying to add ignoring changes on a special tag (everything configured at the provider level).

@github-actions
Copy link

This functionality has been released in v5.14.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. Thank you!

@github-actions
Copy link

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/kms Issues and PRs that pertain to the kms service.
Projects
None yet
5 participants