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

Handle KMS updates with replica tables. #23156

Merged

Conversation

grahamhar
Copy link
Contributor

@grahamhar grahamhar commented Feb 13, 2022

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment 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 pull request followers and do not help prioritize the request

Closes #21726

Output from acceptance testing replica related tests:

➜ make testacc  TESTS='TestAccDynamoDBTable_Replica_' PKG=dynamodb
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/dynamodb/... -v -count 1 -parallel 20 -run='TestAccDynamoDBTable_Replica_'  -timeout 180m
=== RUN   TestAccDynamoDBTable_Replica_multiple
=== PAUSE TestAccDynamoDBTable_Replica_multiple
=== RUN   TestAccDynamoDBTable_Replica_single
=== PAUSE TestAccDynamoDBTable_Replica_single
=== RUN   TestAccDynamoDBTable_Replica_singleWithCMK
=== PAUSE TestAccDynamoDBTable_Replica_singleWithCMK
=== RUN   TestAccDynamoDBTable_Replica_singleUpdateToUseCMK
=== PAUSE TestAccDynamoDBTable_Replica_singleUpdateToUseCMK
=== CONT  TestAccDynamoDBTable_Replica_multiple
=== CONT  TestAccDynamoDBTable_Replica_singleWithCMK
=== CONT  TestAccDynamoDBTable_Replica_singleUpdateToUseCMK
=== CONT  TestAccDynamoDBTable_Replica_single
--- PASS: TestAccDynamoDBTable_Replica_singleWithCMK (342.53s)
--- PASS: TestAccDynamoDBTable_Replica_singleUpdateToUseCMK (459.36s)
--- PASS: TestAccDynamoDBTable_Replica_single (463.40s)
--- PASS: TestAccDynamoDBTable_Replica_multiple (724.64s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/dynamodb   726.839s

Output from acceptance testing encryption related tests:


➜ make testacc  TESTS='TestAccDynamoDBTable_encryption' PKG=dynamodb
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/dynamodb/... -v -count 1 -parallel 20 -run='TestAccDynamoDBTable_encryption'  -timeout 180m
=== RUN   TestAccDynamoDBTable_encryption
=== PAUSE TestAccDynamoDBTable_encryption
=== CONT  TestAccDynamoDBTable_encryption
--- PASS: TestAccDynamoDBTable_encryption (137.80s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/dynamodb   139.694s

@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. service/dynamodb Issues and PRs that pertain to the dynamodb service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. size/L Managed by automation to categorize the size of a PR. and removed tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/dynamodb Issues and PRs that pertain to the dynamodb service. labels Feb 13, 2022
@grahamhar grahamhar force-pushed the terraform-provider-aws/issues/21726 branch from 0db0f94 to e52a296 Compare February 13, 2022 12:35
@github-actions github-actions bot added service/dynamodb Issues and PRs that pertain to the dynamodb service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. and removed tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/dynamodb Issues and PRs that pertain to the dynamodb service. labels Feb 13, 2022
@grahamhar grahamhar force-pushed the terraform-provider-aws/issues/21726 branch from e52a296 to d425225 Compare February 13, 2022 12:41
@github-actions github-actions bot added service/dynamodb Issues and PRs that pertain to the dynamodb service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Feb 13, 2022
@grahamhar grahamhar marked this pull request as ready for review February 13, 2022 13:16
@justinretzolk justinretzolk added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels Feb 15, 2022
@pat-humphreys
Copy link

Anyone know which release this bug might make it into? v1.1.8?

@grahamhar
Copy link
Contributor Author

grahamhar commented Mar 12, 2022

Anyone know which release this bug might make it into? v1.1.8?

@pat-humphreys as I am a community contributor the PRs tend not to get looked at quickly unless there are a large number of reaction on the original message at the top, adding a thumbs up reaction is the best way of helping to get this prioritised

@gdavison gdavison self-assigned this Jul 25, 2022
@grahamhar
Copy link
Contributor Author

@gdavison do I need to do anything to resolve the conflicts on this PR?

@gdavison gdavison force-pushed the terraform-provider-aws/issues/21726 branch from 3a5498a to 4f657f1 Compare November 16, 2022 23:19
Copy link
Contributor

@gdavison gdavison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, @grahamhar. I've been trying to fix a perpetual diff when the default keys are used (#27850), but that's going to take a lot more work and it isn't worth delaying this PR any longer.

--- PASS: TestAccDynamoDBTable_attributeUpdateValidation (40.05s)
--- PASS: TestAccDynamoDBTable_TTL_enabled (148.44s)
--- PASS: TestAccDynamoDBTable_basic (148.45s)
--- PASS: TestAccDynamoDBTable_lsiNonKeyAttributes (162.16s)
--- PASS: TestAccDynamoDBTable_tags (167.64s)
--- PASS: TestAccDynamoDBTable_GsiUpdateNonKeyAttributes_emptyPlan (227.47s)
--- PASS: TestAccDynamoDBTable_TTL_disabled (233.44s)
--- PASS: TestAccDynamoDBTable_lsiUpdate (253.67s)
--- PASS: TestAccDynamoDBTable_BillingMode_payPerRequestToProvisioned (257.70s)
--- PASS: TestAccDynamoDBTable_streamSpecificationValidation (14.20s)
--- PASS: TestAccDynamoDBTable_tableClassInfrequentAccess (268.40s)
--- PASS: TestAccDynamoDBTable_encryption (382.82s)
--- PASS: TestAccDynamoDBTable_gsiUpdateCapacity (230.33s)
--- PASS: TestAccDynamoDBTable_backup_overrideEncryption (406.05s)
--- PASS: TestAccDynamoDBTable_Replica_singleWithCMK (429.92s)
--- PASS: TestAccDynamoDBTable_BillingModeGSI_payPerRequestToProvisioned (236.99s)
--- PASS: TestAccDynamoDBTable_disappears (107.37s)
--- PASS: TestAccDynamoDBTable_BillingMode_payPerRequestToProvisionedIgnoreChanges (189.85s)
--- PASS: TestAccDynamoDBTable_Disappears_payPerRequestWithGSI (234.46s)
--- PASS: TestAccDynamoDBTable_enablePITR (154.28s)
--- PASS: TestAccDynamoDBTable_Replica_tagsTwoOfTwo (465.41s)
--- PASS: TestAccDynamoDBTable_streamSpecification (168.92s)
--- PASS: TestAccDynamoDBTable_streamSpecificationDiffs (501.32s)
--- PASS: TestAccDynamoDBTable_Replica_tagsOneOfTwo (518.72s)
--- PASS: TestAccDynamoDBTable_gsiUpdateNonKeyAttributes (762.87s)
--- PASS: TestAccDynamoDBTable_Replica_singleAddCMK (786.43s)
--- PASS: TestAccDynamoDBTable_BillingMode_provisionedToPayPerRequest (558.90s)
--- PASS: TestAccDynamoDBTable_Replica_tagsUpdate (913.00s)
--- PASS: TestAccDynamoDBTable_Replica_single (921.50s)
--- PASS: TestAccDynamoDBTable_Replica_multiple (924.06s)
--- PASS: TestAccDynamoDBTable_Replica_pitr (548.79s)
--- PASS: TestAccDynamoDBTable_BillingMode_provisionedToPayPerRequestIgnoreChanges (736.58s)
--- PASS: TestAccDynamoDBTable_BillingModeGSI_provisionedToPayPerRequest (1002.36s)
--- PASS: TestAccDynamoDBTable_Replica_tagsNext (912.50s)
--- PASS: TestAccDynamoDBTable_backupEncryption (1145.25s)
--- PASS: TestAccDynamoDBTable_attributeUpdate (1232.55s)
--- PASS: TestAccDynamoDBTable_gsiUpdateOtherAttributes (1086.53s)
--- PASS: TestAccDynamoDBTable_extended (615.45s)

@gdavison gdavison merged commit 275ddbe into hashicorp:main Nov 17, 2022
@github-actions github-actions bot added this to the v4.40.0 milestone Nov 17, 2022
@github-actions
Copy link

This functionality has been released in v4.40.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 pull request 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 related to this change, 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 Dec 18, 2022
@grahamhar grahamhar deleted the terraform-provider-aws/issues/21726 branch March 4, 2024 22:09
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/dynamodb Issues and PRs that pertain to the dynamodb service. size/L Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Changing KMS key on Dynamodb replicas fails
4 participants