-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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: Fixes timeout when removing all tags #32371
Conversation
Community NoteVoting for Prioritization
For Submitters
|
79c9ee3
to
766b8dc
Compare
Not a blocker for this PR, but we need to tidy up the |
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.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccKMSKey' PKG=kms ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/kms/... -v -count 1 -parallel 2 -run=TestAccKMSKey -timeout 180m
=== RUN TestAccKMSKeyDataSource_byKeyARN
=== PAUSE TestAccKMSKeyDataSource_byKeyARN
=== RUN TestAccKMSKeyDataSource_byKeyID
=== PAUSE TestAccKMSKeyDataSource_byKeyID
=== RUN TestAccKMSKeyDataSource_byAliasARN
=== PAUSE TestAccKMSKeyDataSource_byAliasARN
=== RUN TestAccKMSKeyDataSource_byAliasID
=== PAUSE TestAccKMSKeyDataSource_byAliasID
=== RUN TestAccKMSKeyDataSource_grantToken
=== PAUSE TestAccKMSKeyDataSource_grantToken
=== RUN TestAccKMSKeyDataSource_multiRegionConfigurationByARN
=== PAUSE TestAccKMSKeyDataSource_multiRegionConfigurationByARN
=== RUN TestAccKMSKeyDataSource_multiRegionConfigurationByID
=== PAUSE TestAccKMSKeyDataSource_multiRegionConfigurationByID
=== RUN TestAccKMSKeyPolicy_basic
=== PAUSE TestAccKMSKeyPolicy_basic
=== RUN TestAccKMSKeyPolicy_disappears
=== PAUSE TestAccKMSKeyPolicy_disappears
=== RUN TestAccKMSKeyPolicy_bypass
=== PAUSE TestAccKMSKeyPolicy_bypass
=== RUN TestAccKMSKeyPolicy_bypassUpdate
=== PAUSE TestAccKMSKeyPolicy_bypassUpdate
=== RUN TestAccKMSKeyPolicy_keyIsEnabled
=== PAUSE TestAccKMSKeyPolicy_keyIsEnabled
=== RUN TestAccKMSKeyPolicy_iamRole
=== PAUSE TestAccKMSKeyPolicy_iamRole
=== RUN TestAccKMSKeyPolicy_iamRoleUpdate
=== PAUSE TestAccKMSKeyPolicy_iamRoleUpdate
=== RUN TestAccKMSKeyPolicy_iamRoleOrder
=== PAUSE TestAccKMSKeyPolicy_iamRoleOrder
=== RUN TestAccKMSKeyPolicy_iamServiceLinkedRole
=== PAUSE TestAccKMSKeyPolicy_iamServiceLinkedRole
=== RUN TestAccKMSKeyPolicy_booleanCondition
=== PAUSE TestAccKMSKeyPolicy_booleanCondition
=== RUN TestAccKMSKey_basic
=== PAUSE TestAccKMSKey_basic
=== RUN TestAccKMSKey_disappears
=== PAUSE TestAccKMSKey_disappears
=== RUN TestAccKMSKey_multiRegion
=== PAUSE TestAccKMSKey_multiRegion
=== RUN TestAccKMSKey_asymmetricKey
=== PAUSE TestAccKMSKey_asymmetricKey
=== RUN TestAccKMSKey_hmacKey
=== PAUSE TestAccKMSKey_hmacKey
=== RUN TestAccKMSKey_Policy_basic
=== PAUSE TestAccKMSKey_Policy_basic
=== RUN TestAccKMSKey_Policy_bypass
=== PAUSE TestAccKMSKey_Policy_bypass
=== RUN TestAccKMSKey_Policy_bypassUpdate
=== PAUSE TestAccKMSKey_Policy_bypassUpdate
=== RUN TestAccKMSKey_Policy_iamRole
=== PAUSE TestAccKMSKey_Policy_iamRole
=== RUN TestAccKMSKey_Policy_iamRoleUpdate
=== PAUSE TestAccKMSKey_Policy_iamRoleUpdate
=== RUN TestAccKMSKey_Policy_iamRoleOrder
=== PAUSE TestAccKMSKey_Policy_iamRoleOrder
=== RUN TestAccKMSKey_Policy_iamServiceLinkedRole
=== PAUSE TestAccKMSKey_Policy_iamServiceLinkedRole
=== RUN TestAccKMSKey_Policy_booleanCondition
=== PAUSE TestAccKMSKey_Policy_booleanCondition
=== RUN TestAccKMSKey_isEnabled
=== PAUSE TestAccKMSKey_isEnabled
=== RUN TestAccKMSKey_tags
=== PAUSE TestAccKMSKey_tags
=== CONT TestAccKMSKeyDataSource_byKeyARN
=== CONT TestAccKMSKeyPolicy_booleanCondition
=== CONT TestAccKMSKeyPolicy_disappears
--- PASS: TestAccKMSKeyDataSource_byKeyARN (28.68s)
--- PASS: TestAccKMSKeyPolicy_booleanCondition (37.50s)
=== CONT TestAccKMSKeyPolicy_iamServiceLinkedRole
--- PASS: TestAccKMSKeyPolicy_disappears (23.88s)
=== CONT TestAccKMSKeyPolicy_iamRoleOrder
--- PASS: TestAccKMSKeyPolicy_iamServiceLinkedRole (61.74s)
=== CONT TestAccKMSKeyPolicy_iamRoleUpdate
--- PASS: TestAccKMSKeyPolicy_iamRoleOrder (84.39s)
=== CONT TestAccKMSKeyPolicy_iamRole
--- PASS: TestAccKMSKeyPolicy_iamRoleUpdate (62.62s)
=== CONT TestAccKMSKeyPolicy_keyIsEnabled
--- PASS: TestAccKMSKeyPolicy_iamRole (43.62s)
=== CONT TestAccKMSKeyPolicy_bypassUpdate
--- PASS: TestAccKMSKeyPolicy_bypassUpdate (48.89s)
=== CONT TestAccKMSKeyPolicy_bypass
--- PASS: TestAccKMSKeyPolicy_keyIsEnabled (80.92s)
=== CONT TestAccKMSKey_Policy_bypassUpdate
--- PASS: TestAccKMSKey_Policy_bypassUpdate (43.55s)
=== CONT TestAccKMSKey_tags
--- PASS: TestAccKMSKeyPolicy_bypass (157.89s)
=== CONT TestAccKMSKey_isEnabled
--- PASS: TestAccKMSKey_isEnabled (129.21s)
=== CONT TestAccKMSKey_Policy_booleanCondition
--- PASS: TestAccKMSKey_Policy_booleanCondition (25.66s)
=== CONT TestAccKMSKey_Policy_iamServiceLinkedRole
--- PASS: TestAccKMSKey_Policy_iamServiceLinkedRole (55.26s)
=== CONT TestAccKMSKey_Policy_iamRoleOrder
--- PASS: TestAccKMSKey_Policy_iamRoleOrder (76.38s)
=== CONT TestAccKMSKey_Policy_iamRoleUpdate
--- PASS: TestAccKMSKey_Policy_iamRoleUpdate (74.20s)
=== CONT TestAccKMSKey_Policy_iamRole
--- PASS: TestAccKMSKey_Policy_iamRole (57.82s)
=== CONT TestAccKMSKey_asymmetricKey
--- PASS: TestAccKMSKey_asymmetricKey (21.41s)
=== CONT TestAccKMSKey_Policy_bypass
=== NAME TestAccKMSKey_tags
key_test.go:458: Step 5/6 error: Error running apply: exit status 1
Error: updating tags for KMS (Key Management) Key (4985aa0e-541b-4ee8-9532-eb7fdd6d5d8a): waiting for resource (4985aa0e-541b-4ee8-9532-eb7fdd6d5d8a) tag propagation: timeout while waiting for state to become 'TRUE' (last state: 'FALSE', timeout: 10m0s)
with aws_kms_key.test,
on terraform_plugin_test.tf line 2, in resource "aws_kms_key" "test":
2: resource "aws_kms_key" "test" {
--- FAIL: TestAccKMSKey_tags (678.72s)
=== CONT TestAccKMSKey_Policy_basic
--- PASS: TestAccKMSKey_Policy_bypass (156.92s)
=== CONT TestAccKMSKey_hmacKey
--- PASS: TestAccKMSKey_hmacKey (22.49s)
=== CONT TestAccKMSKeyDataSource_grantToken
--- PASS: TestAccKMSKey_Policy_basic (46.14s)
=== CONT TestAccKMSKeyPolicy_basic
--- PASS: TestAccKMSKeyDataSource_grantToken (40.58s)
=== CONT TestAccKMSKeyDataSource_multiRegionConfigurationByID
--- PASS: TestAccKMSKeyDataSource_multiRegionConfigurationByID (26.49s)
=== CONT TestAccKMSKeyDataSource_multiRegionConfigurationByARN
--- PASS: TestAccKMSKeyPolicy_basic (66.89s)
=== CONT TestAccKMSKey_disappears
--- PASS: TestAccKMSKeyDataSource_multiRegionConfigurationByARN (23.67s)
=== CONT TestAccKMSKey_basic
--- PASS: TestAccKMSKey_disappears (19.96s)
=== CONT TestAccKMSKeyDataSource_byAliasARN
--- PASS: TestAccKMSKeyDataSource_byAliasARN (23.56s)
=== CONT TestAccKMSKeyDataSource_byAliasID
--- PASS: TestAccKMSKey_basic (27.28s)
=== CONT TestAccKMSKeyDataSource_byKeyID
--- PASS: TestAccKMSKeyDataSource_byAliasID (24.07s)
=== CONT TestAccKMSKey_multiRegion
--- PASS: TestAccKMSKeyDataSource_byKeyID (23.30s)
--- PASS: TestAccKMSKey_multiRegion (26.07s)
FAIL
FAIL github.com/hashicorp/terraform-provider-aws/internal/service/kms 1177.448s
FAIL
make: *** [testacc] Error 1
% make testacc TESTARGS='-run=TestAccKMSKey_tags' PKG=kms ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/kms/... -v -count 1 -parallel 2 -run=TestAccKMSKey_tags -timeout 180m
=== RUN TestAccKMSKey_tags
=== PAUSE TestAccKMSKey_tags
=== CONT TestAccKMSKey_tags
--- PASS: TestAccKMSKey_tags (97.04s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/kms 102.353s
This functionality has been released in v5.7.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! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
Fixes timeout error when removing all tags from
Output from Acceptance Testing