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

resource/aws_elasticache_global_replication_group: Allow configuring shards #27500

Merged
merged 9 commits into from
Oct 27, 2022

Conversation

gdavison
Copy link
Contributor

Allow configuring shards (node groups) on ElastiCache Global Replication Groups.

Relations

Closes #22752

References

Output from Acceptance Testing

$ make testacc PKG=elasticache TESTS=TestAccElastiCacheGlobalReplicationGroup_

--- PASS: TestAccElastiCacheGlobalReplicationGroup_SetParameterGroupOnCreate_NoVersion (8.67s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_SetParameterGroupOnUpdate_MinorUpgrade (863.27s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_SetEngineVersionOnCreate_NoChange_v6 (884.56s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_SetEngineVersionOnCreate_MajorUpgrade_6x (1106.86s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_SetEngineVersionOnCreate_NoChange_v6x (1198.54s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_SetEngineVersionOnCreate_NoChange_v5 (1199.13s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_SetParameterGroupOnUpdate_NoVersion (1210.21s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_SetEngineVersionOnUpdate_MajorUpgrade_6x (1235.99s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_SetParameterGroupOnCreate_MinorUpgrade (1292.64s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_SetEngineVersionOnCreate_MinorUpgrade (1432.50s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_SetEngineVersionOnCreate_MinorUpgrade_6x (1453.40s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_SetEngineVersionOnCreate_MinorDowngrade (1658.70s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_basic (1720.67s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_SetEngineVersionOnCreate_MajorUpgrade (1747.26s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_SetEngineVersionOnUpdate_MinorUpgrade (1760.80s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_SetEngineVersionOnUpdate_MinorUpgrade_6x (1829.60s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_SetEngineVersionOnUpdate_MajorUpgrade (1850.22s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_clusterMode_basic (1179.17s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_SetNumNodeGroupsOnCreate_NoChange (1446.66s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_automaticFailover_createWithChange (1148.52s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_automaticFailover_update (1350.44s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_automaticFailover_createNoChange (1169.62s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_automaticFailover_setNoChange (1443.53s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_disappears (968.73s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_nodeType_createNoChange (1095.00s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_description (1055.59s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_nodeType_setNoChange (1289.30s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_SetEngineVersionOnUpdate_MinorDowngrade (3106.44s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_UpdateParameterGroupName (1431.39s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_nodeType_update (1959.73s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_SetNumNodeGroupsOnCreate_Decrease (3441.19s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_SetNumNodeGroupsOnUpdate_Increase (3632.16s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_nodeType_createWithChange (2226.46s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_SetNumNodeGroupsOnCreate_Increase (3092.55s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_SetNumNodeGroupsOnUpdate_Decrease (4129.90s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_multipleSecondaries (3447.97s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_ReplaceSecondary_differentRegion (3532.04s)

@gdavison gdavison marked this pull request as ready for review October 27, 2022 00:36
@github-actions
Copy link

Community Note

Voting for Prioritization

  • Please vote on this pull request by adding a 👍 reaction to the original post to help the community and maintainers prioritize this pull request.
  • Please see our prioritization guide for information on how we prioritize.
  • 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.

For Submitters

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • For new resources and data sources, use skaff to generate scaffolding with comments detailing common expectations.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@github-actions github-actions bot added size/XL Managed by automation to categorize the size of a PR. documentation Introduces or discusses updates to documentation. service/elasticache Issues and PRs that pertain to the elasticache service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Oct 27, 2022
Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

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

LGTM 🚀.

% ACCTEST_TIMEOUT=360m  make testacc TESTARGS='-run=TestAccElastiCacheGlobalReplicationGroup_basic\|TestAccElastiCacheGlobalReplicationGroup_clusterMode_basic\|TestAccElastiCacheGlobalReplicationGroup_SetNumNodeGroupsOn' PKG=elasticache ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/elasticache/... -v -count 1 -parallel 2  -run=TestAccElastiCacheGlobalReplicationGroup_basic\|TestAccElastiCacheGlobalReplicationGroup_clusterMode_basic\|TestAccElastiCacheGlobalReplicationGroup_SetNumNodeGroupsOn -timeout 360m
=== RUN   TestAccElastiCacheGlobalReplicationGroup_basic
=== PAUSE TestAccElastiCacheGlobalReplicationGroup_basic
=== RUN   TestAccElastiCacheGlobalReplicationGroup_clusterMode_basic
=== PAUSE TestAccElastiCacheGlobalReplicationGroup_clusterMode_basic
=== RUN   TestAccElastiCacheGlobalReplicationGroup_SetNumNodeGroupsOnCreate_NoChange
=== PAUSE TestAccElastiCacheGlobalReplicationGroup_SetNumNodeGroupsOnCreate_NoChange
=== RUN   TestAccElastiCacheGlobalReplicationGroup_SetNumNodeGroupsOnCreate_Increase
=== PAUSE TestAccElastiCacheGlobalReplicationGroup_SetNumNodeGroupsOnCreate_Increase
=== RUN   TestAccElastiCacheGlobalReplicationGroup_SetNumNodeGroupsOnCreate_Decrease
=== PAUSE TestAccElastiCacheGlobalReplicationGroup_SetNumNodeGroupsOnCreate_Decrease
=== RUN   TestAccElastiCacheGlobalReplicationGroup_SetNumNodeGroupsOnUpdate_Increase
=== PAUSE TestAccElastiCacheGlobalReplicationGroup_SetNumNodeGroupsOnUpdate_Increase
=== RUN   TestAccElastiCacheGlobalReplicationGroup_SetNumNodeGroupsOnUpdate_Decrease
=== PAUSE TestAccElastiCacheGlobalReplicationGroup_SetNumNodeGroupsOnUpdate_Decrease
=== CONT  TestAccElastiCacheGlobalReplicationGroup_basic
=== CONT  TestAccElastiCacheGlobalReplicationGroup_SetNumNodeGroupsOnCreate_Decrease
--- PASS: TestAccElastiCacheGlobalReplicationGroup_basic (903.55s)
=== CONT  TestAccElastiCacheGlobalReplicationGroup_SetNumNodeGroupsOnUpdate_Decrease
--- PASS: TestAccElastiCacheGlobalReplicationGroup_SetNumNodeGroupsOnCreate_Decrease (3516.68s)
=== CONT  TestAccElastiCacheGlobalReplicationGroup_SetNumNodeGroupsOnUpdate_Increase
--- PASS: TestAccElastiCacheGlobalReplicationGroup_SetNumNodeGroupsOnUpdate_Decrease (3006.41s)
=== CONT  TestAccElastiCacheGlobalReplicationGroup_SetNumNodeGroupsOnCreate_NoChange
--- PASS: TestAccElastiCacheGlobalReplicationGroup_SetNumNodeGroupsOnCreate_NoChange (1092.40s)
=== CONT  TestAccElastiCacheGlobalReplicationGroup_SetNumNodeGroupsOnCreate_Increase
--- PASS: TestAccElastiCacheGlobalReplicationGroup_SetNumNodeGroupsOnUpdate_Increase (2801.00s)
=== CONT  TestAccElastiCacheGlobalReplicationGroup_clusterMode_basic
--- PASS: TestAccElastiCacheGlobalReplicationGroup_clusterMode_basic (1068.82s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_SetNumNodeGroupsOnCreate_Increase (2621.79s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/elasticache	7628.181s

@github-actions github-actions bot added the sweeper Pertains to changes to or issues with the sweeper. label Oct 27, 2022
@gdavison gdavison merged commit 5d465dd into main Oct 27, 2022
@gdavison gdavison deleted the f-elasticache-global-shards branch October 27, 2022 19:18
@github-actions github-actions bot added this to the v4.37.0 milestone Oct 27, 2022
github-actions bot pushed a commit that referenced this pull request Oct 27, 2022
@github-actions
Copy link

This functionality has been released in v4.37.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 Nov 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. service/elasticache Issues and PRs that pertain to the elasticache service. size/XL Managed by automation to categorize the size of a PR. sweeper Pertains to changes to or issues with the sweeper. 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.

Elasticache Global Datastore (aws_elasticache_global_replication_group) modify shards (resharding)
2 participants