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

chore: don't disable acc test KMS keys #1668

Merged
merged 1 commit into from
Jun 5, 2023

Conversation

craigfurman
Copy link
Contributor

@craigfurman craigfurman commented Jun 5, 2023

When applying acceptance test terraform for AWS KMS key resources, we often see errors of the form: Failed to set KMS key ... status to false: "NotFoundException: Key '...' does not exist". Our current theory is that setting is_enabled=false (as we currently do) is causing terraform to have to perform 2 API operations: create the key, then disable it. Due to the "eventualy consistency" of this API we see this flaking quite often.

We don't actually need to disable the keys, so let's not, in an attempt to improve the reliability of this test.

When applying acceptance test terraform for AWS KMS key resources, we
often see errors of the form: `Failed to set KMS key ... status to
false: "NotFoundException: Key '...' does not exist"`. Our current
theory is that setting is_enabled=false (as we currently do) is causing
terraform to have to perform 2 API operations: create the key, then
disable it. Due to the "eventualy consistency" of this API we see this
flaking quite often.

We don't actually need to disable the keys, so let's not, in an attempt
to improve the reliability of this test.
@craigfurman craigfurman requested a review from a team as a code owner June 5, 2023 16:17
@craigfurman craigfurman merged commit 714d779 into main Jun 5, 2023
@craigfurman craigfurman deleted the acc-tests-aws-kms-reliability branch June 5, 2023 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants