-
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
resource/aws_elasticache_replication_group: Validation fixes #38396
resource/aws_elasticache_replication_group: Validation fixes #38396
Conversation
Community NoteVoting for Prioritization
For Submitters
|
Thank you for your contribution! 🚀 A new usage of AWS SDK for Go V1 was detected. Please prefer AWS SDK for Go V2 for all net-new services. If this is an enhancement or bug fix to an existing AWS SDK Go V1 based resource, this comment can be safely ignored. For additional information refer to the AWS SDK for Go Versions page in the contributor guide. |
7d701be
to
3f985ce
Compare
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 🚀.
% ACCTEST_TIMEOUT=720m make testacc TESTARGS='-run=TestAccElastiCacheReplicationGroup_cacheClustersConflictsWithReplicasPerNodeGroup\|TestAccElastiCacheReplicationGroup_basic\|TestAccElastiCacheReplicationGroup_autoFailoverEnabled_validateNumberCacheClusters' PKG=elasticache ACCTEST_PARALLELISM=3
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.5 test ./internal/service/elasticache/... -v -count 1 -parallel 3 -run=TestAccElastiCacheReplicationGroup_cacheClustersConflictsWithReplicasPerNodeGroup\|TestAccElastiCacheReplicationGroup_basic\|TestAccElastiCacheReplicationGroup_autoFailoverEnabled_validateNumberCacheClusters -timeout 720m
=== RUN TestAccElastiCacheReplicationGroup_basic
=== PAUSE TestAccElastiCacheReplicationGroup_basic
=== RUN TestAccElastiCacheReplicationGroup_basic_v5
=== PAUSE TestAccElastiCacheReplicationGroup_basic_v5
=== RUN TestAccElastiCacheReplicationGroup_cacheClustersConflictsWithReplicasPerNodeGroup
=== PAUSE TestAccElastiCacheReplicationGroup_cacheClustersConflictsWithReplicasPerNodeGroup
=== RUN TestAccElastiCacheReplicationGroup_autoFailoverEnabled_validateNumberCacheClusters
=== PAUSE TestAccElastiCacheReplicationGroup_autoFailoverEnabled_validateNumberCacheClusters
=== CONT TestAccElastiCacheReplicationGroup_basic
=== CONT TestAccElastiCacheReplicationGroup_cacheClustersConflictsWithReplicasPerNodeGroup
=== CONT TestAccElastiCacheReplicationGroup_basic_v5
--- PASS: TestAccElastiCacheReplicationGroup_cacheClustersConflictsWithReplicasPerNodeGroup (1.56s)
=== CONT TestAccElastiCacheReplicationGroup_autoFailoverEnabled_validateNumberCacheClusters
--- PASS: TestAccElastiCacheReplicationGroup_autoFailoverEnabled_validateNumberCacheClusters (1.54s)
--- PASS: TestAccElastiCacheReplicationGroup_basic_v5 (723.32s)
--- PASS: TestAccElastiCacheReplicationGroup_basic (807.40s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/elasticache 812.191s
This functionality has been released in v5.59.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 the following validations in
aws_elasticache_replication_group
:description
(was missed in elasticache/rep_group: Remove availability zones and other deprecated parameters #31008)automatic_failover_enabled
istrue
,num_cache_clusters
must be greater than or equal to 2 if setreplicas_per_node_group
whennum_cache_clusters
is setreplicas_per_node_group
and allows setting to0
.Relations
Closes #38360
Closes #27116
References
Output from Acceptance Testing