-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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: Allows specifying and updating replica count on Global Replication Group members #20111
Conversation
Commercial% make testacc TESTARGS='-run=TestAccAWSElasticacheGlobalReplicationGroup\|TestAccAWSElasticacheReplicationGroup'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSElasticacheGlobalReplicationGroup\|TestAccAWSElasticacheReplicationGroup -timeout 180m
=== RUN TestAccAWSElasticacheGlobalReplicationGroup_basic
=== PAUSE TestAccAWSElasticacheGlobalReplicationGroup_basic
=== RUN TestAccAWSElasticacheGlobalReplicationGroup_Description
=== PAUSE TestAccAWSElasticacheGlobalReplicationGroup_Description
=== RUN TestAccAWSElasticacheGlobalReplicationGroup_disappears
=== PAUSE TestAccAWSElasticacheGlobalReplicationGroup_disappears
=== RUN TestAccAWSElasticacheGlobalReplicationGroup_MultipleSecondaries
=== PAUSE TestAccAWSElasticacheGlobalReplicationGroup_MultipleSecondaries
=== RUN TestAccAWSElasticacheGlobalReplicationGroup_ReplaceSecondary_DifferentRegion
=== PAUSE TestAccAWSElasticacheGlobalReplicationGroup_ReplaceSecondary_DifferentRegion
=== RUN TestAccAWSElasticacheGlobalReplicationGroup_ClusterMode
=== PAUSE TestAccAWSElasticacheGlobalReplicationGroup_ClusterMode
=== RUN TestAccAWSElasticacheReplicationGroup_basic
=== PAUSE TestAccAWSElasticacheReplicationGroup_basic
=== RUN TestAccAWSElasticacheReplicationGroup_Uppercase
=== PAUSE TestAccAWSElasticacheReplicationGroup_Uppercase
=== RUN TestAccAWSElasticacheReplicationGroup_EngineVersion_Update
=== PAUSE TestAccAWSElasticacheReplicationGroup_EngineVersion_Update
=== RUN TestAccAWSElasticacheReplicationGroup_disappears
=== PAUSE TestAccAWSElasticacheReplicationGroup_disappears
=== RUN TestAccAWSElasticacheReplicationGroup_updateDescription
=== PAUSE TestAccAWSElasticacheReplicationGroup_updateDescription
=== RUN TestAccAWSElasticacheReplicationGroup_updateMaintenanceWindow
=== PAUSE TestAccAWSElasticacheReplicationGroup_updateMaintenanceWindow
=== RUN TestAccAWSElasticacheReplicationGroup_updateNodeSize
=== PAUSE TestAccAWSElasticacheReplicationGroup_updateNodeSize
=== RUN TestAccAWSElasticacheReplicationGroup_updateParameterGroup
=== PAUSE TestAccAWSElasticacheReplicationGroup_updateParameterGroup
=== RUN TestAccAWSElasticacheReplicationGroup_vpc
=== PAUSE TestAccAWSElasticacheReplicationGroup_vpc
=== RUN TestAccAWSElasticacheReplicationGroup_multiAzNotInVpc
=== PAUSE TestAccAWSElasticacheReplicationGroup_multiAzNotInVpc
=== RUN TestAccAWSElasticacheReplicationGroup_multiAzInVpc
=== PAUSE TestAccAWSElasticacheReplicationGroup_multiAzInVpc
=== RUN TestAccAWSElasticacheReplicationGroup_Validation_multiAz_NoAutomaticFailover
=== PAUSE TestAccAWSElasticacheReplicationGroup_Validation_multiAz_NoAutomaticFailover
=== RUN TestAccAWSElasticacheReplicationGroup_redisClusterInVpc2
=== PAUSE TestAccAWSElasticacheReplicationGroup_redisClusterInVpc2
=== RUN TestAccAWSElasticacheReplicationGroup_ClusterMode_Basic
=== PAUSE TestAccAWSElasticacheReplicationGroup_ClusterMode_Basic
=== RUN TestAccAWSElasticacheReplicationGroup_ClusterMode_NonClusteredParameterGroup
=== PAUSE TestAccAWSElasticacheReplicationGroup_ClusterMode_NonClusteredParameterGroup
=== RUN TestAccAWSElasticacheReplicationGroup_ClusterMode_UpdateNumNodeGroups_ScaleUp
=== PAUSE TestAccAWSElasticacheReplicationGroup_ClusterMode_UpdateNumNodeGroups_ScaleUp
=== RUN TestAccAWSElasticacheReplicationGroup_ClusterMode_UpdateNumNodeGroups_ScaleDown
=== PAUSE TestAccAWSElasticacheReplicationGroup_ClusterMode_UpdateNumNodeGroups_ScaleDown
=== RUN TestAccAWSElasticacheReplicationGroup_ClusterMode_UpdateReplicasPerNodeGroup
=== PAUSE TestAccAWSElasticacheReplicationGroup_ClusterMode_UpdateReplicasPerNodeGroup
=== RUN TestAccAWSElasticacheReplicationGroup_ClusterMode_UpdateNumNodeGroupsAndReplicasPerNodeGroup_ScaleUp
=== PAUSE TestAccAWSElasticacheReplicationGroup_ClusterMode_UpdateNumNodeGroupsAndReplicasPerNodeGroup_ScaleUp
=== RUN TestAccAWSElasticacheReplicationGroup_ClusterMode_UpdateNumNodeGroupsAndReplicasPerNodeGroup_ScaleDown
=== PAUSE TestAccAWSElasticacheReplicationGroup_ClusterMode_UpdateNumNodeGroupsAndReplicasPerNodeGroup_ScaleDown
=== RUN TestAccAWSElasticacheReplicationGroup_ClusterMode_SingleNode
=== PAUSE TestAccAWSElasticacheReplicationGroup_ClusterMode_SingleNode
=== RUN TestAccAWSElasticacheReplicationGroup_clusteringAndCacheNodesCausesError
=== PAUSE TestAccAWSElasticacheReplicationGroup_clusteringAndCacheNodesCausesError
=== RUN TestAccAWSElasticacheReplicationGroup_enableSnapshotting
=== PAUSE TestAccAWSElasticacheReplicationGroup_enableSnapshotting
=== RUN TestAccAWSElasticacheReplicationGroup_enableAuthTokenTransitEncryption
=== PAUSE TestAccAWSElasticacheReplicationGroup_enableAuthTokenTransitEncryption
=== RUN TestAccAWSElasticacheReplicationGroup_enableAtRestEncryption
=== PAUSE TestAccAWSElasticacheReplicationGroup_enableAtRestEncryption
=== RUN TestAccAWSElasticacheReplicationGroup_useCmkKmsKeyId
=== PAUSE TestAccAWSElasticacheReplicationGroup_useCmkKmsKeyId
=== RUN TestAccAWSElasticacheReplicationGroup_NumberCacheClusters_Basic
=== PAUSE TestAccAWSElasticacheReplicationGroup_NumberCacheClusters_Basic
=== RUN TestAccAWSElasticacheReplicationGroup_NumberCacheClusters_Failover_AutoFailoverDisabled
=== PAUSE TestAccAWSElasticacheReplicationGroup_NumberCacheClusters_Failover_AutoFailoverDisabled
=== RUN TestAccAWSElasticacheReplicationGroup_NumberCacheClusters_Failover_AutoFailoverEnabled
=== PAUSE TestAccAWSElasticacheReplicationGroup_NumberCacheClusters_Failover_AutoFailoverEnabled
=== RUN TestAccAWSElasticacheReplicationGroup_NumberCacheClusters_MultiAZEnabled
=== PAUSE TestAccAWSElasticacheReplicationGroup_NumberCacheClusters_MultiAZEnabled
=== RUN TestAccAWSElasticacheReplicationGroup_NumberCacheClusters_MemberClusterDisappears_NoChange
=== PAUSE TestAccAWSElasticacheReplicationGroup_NumberCacheClusters_MemberClusterDisappears_NoChange
=== RUN TestAccAWSElasticacheReplicationGroup_NumberCacheClusters_MemberClusterDisappears_AddMemberCluster
=== PAUSE TestAccAWSElasticacheReplicationGroup_NumberCacheClusters_MemberClusterDisappears_AddMemberCluster
=== RUN TestAccAWSElasticacheReplicationGroup_NumberCacheClusters_MemberClusterDisappears_RemoveMemberCluster_AtTargetSize
=== PAUSE TestAccAWSElasticacheReplicationGroup_NumberCacheClusters_MemberClusterDisappears_RemoveMemberCluster_AtTargetSize
=== RUN TestAccAWSElasticacheReplicationGroup_NumberCacheClusters_MemberClusterDisappears_RemoveMemberCluster_ScaleDown
=== PAUSE TestAccAWSElasticacheReplicationGroup_NumberCacheClusters_MemberClusterDisappears_RemoveMemberCluster_ScaleDown
=== RUN TestAccAWSElasticacheReplicationGroup_tags
=== PAUSE TestAccAWSElasticacheReplicationGroup_tags
=== RUN TestAccAWSElasticacheReplicationGroup_FinalSnapshot
=== PAUSE TestAccAWSElasticacheReplicationGroup_FinalSnapshot
=== RUN TestAccAWSElasticacheReplicationGroup_Validation_NoNodeType
=== PAUSE TestAccAWSElasticacheReplicationGroup_Validation_NoNodeType
=== RUN TestAccAWSElasticacheReplicationGroup_Validation_GlobalReplicationGroupIdAndNodeType
=== PAUSE TestAccAWSElasticacheReplicationGroup_Validation_GlobalReplicationGroupIdAndNodeType
=== RUN TestAccAWSElasticacheReplicationGroup_GlobalReplicationGroupId_Basic
=== PAUSE TestAccAWSElasticacheReplicationGroup_GlobalReplicationGroupId_Basic
=== RUN TestAccAWSElasticacheReplicationGroup_GlobalReplicationGroupId_Full
=== PAUSE TestAccAWSElasticacheReplicationGroup_GlobalReplicationGroupId_Full
=== RUN TestAccAWSElasticacheReplicationGroup_GlobalReplicationGroupId_ClusterMode_Basic
=== PAUSE TestAccAWSElasticacheReplicationGroup_GlobalReplicationGroupId_ClusterMode_Basic
=== RUN TestAccAWSElasticacheReplicationGroup_GlobalReplicationGroupId_disappears
=== PAUSE TestAccAWSElasticacheReplicationGroup_GlobalReplicationGroupId_disappears
=== RUN TestAccAWSElasticacheReplicationGroup_GlobalReplicationGroupId_ClusterMode_Validation_NumNodeGroupsOnSecondary
=== PAUSE TestAccAWSElasticacheReplicationGroup_GlobalReplicationGroupId_ClusterMode_Validation_NumNodeGroupsOnSecondary
=== CONT TestAccAWSElasticacheGlobalReplicationGroup_basic
=== CONT TestAccAWSElasticacheReplicationGroup_ClusterMode_UpdateNumNodeGroupsAndReplicasPerNodeGroup_ScaleDown
=== CONT TestAccAWSElasticacheReplicationGroup_NumberCacheClusters_MemberClusterDisappears_RemoveMemberCluster_AtTargetSize
=== CONT TestAccAWSElasticacheReplicationGroup_NumberCacheClusters_Failover_AutoFailoverDisabled
=== CONT TestAccAWSElasticacheReplicationGroup_useCmkKmsKeyId
=== CONT TestAccAWSElasticacheReplicationGroup_enableAtRestEncryption
=== CONT TestAccAWSElasticacheReplicationGroup_enableAuthTokenTransitEncryption
=== CONT TestAccAWSElasticacheReplicationGroup_enableSnapshotting
=== CONT TestAccAWSElasticacheReplicationGroup_NumberCacheClusters_Basic
=== CONT TestAccAWSElasticacheReplicationGroup_clusteringAndCacheNodesCausesError
=== CONT TestAccAWSElasticacheReplicationGroup_NumberCacheClusters_MemberClusterDisappears_AddMemberCluster
=== CONT TestAccAWSElasticacheReplicationGroup_NumberCacheClusters_MemberClusterDisappears_NoChange
=== CONT TestAccAWSElasticacheReplicationGroup_NumberCacheClusters_MultiAZEnabled
=== CONT TestAccAWSElasticacheReplicationGroup_NumberCacheClusters_Failover_AutoFailoverEnabled
=== CONT TestAccAWSElasticacheReplicationGroup_ClusterMode_SingleNode
=== CONT TestAccAWSElasticacheReplicationGroup_GlobalReplicationGroupId_Basic
=== CONT TestAccAWSElasticacheReplicationGroup_updateParameterGroup
=== CONT TestAccAWSElasticacheReplicationGroup_ClusterMode_UpdateNumNodeGroupsAndReplicasPerNodeGroup_ScaleUp
=== CONT TestAccAWSElasticacheReplicationGroup_GlobalReplicationGroupId_ClusterMode_Validation_NumNodeGroupsOnSecondary
=== CONT TestAccAWSElasticacheReplicationGroup_ClusterMode_UpdateReplicasPerNodeGroup
--- PASS: TestAccAWSElasticacheReplicationGroup_clusteringAndCacheNodesCausesError (5.99s)
=== CONT TestAccAWSElasticacheReplicationGroup_GlobalReplicationGroupId_disappears
--- PASS: TestAccAWSElasticacheReplicationGroup_enableSnapshotting (651.01s)
=== CONT TestAccAWSElasticacheReplicationGroup_Validation_multiAz_NoAutomaticFailover
--- PASS: TestAccAWSElasticacheReplicationGroup_Validation_multiAz_NoAutomaticFailover (1.84s)
=== CONT TestAccAWSElasticacheReplicationGroup_GlobalReplicationGroupId_ClusterMode_Basic
--- PASS: TestAccAWSElasticacheGlobalReplicationGroup_basic (693.18s)
=== CONT TestAccAWSElasticacheReplicationGroup_multiAzInVpc
--- PASS: TestAccAWSElasticacheReplicationGroup_useCmkKmsKeyId (824.04s)
=== CONT TestAccAWSElasticacheReplicationGroup_GlobalReplicationGroupId_Full
--- PASS: TestAccAWSElasticacheReplicationGroup_enableAtRestEncryption (827.95s)
=== CONT TestAccAWSElasticacheReplicationGroup_multiAzNotInVpc
--- PASS: TestAccAWSElasticacheReplicationGroup_GlobalReplicationGroupId_ClusterMode_Validation_NumNodeGroupsOnSecondary (928.80s)
=== CONT TestAccAWSElasticacheReplicationGroup_Uppercase
--- PASS: TestAccAWSElasticacheReplicationGroup_updateParameterGroup (931.18s)
=== CONT TestAccAWSElasticacheReplicationGroup_vpc
--- PASS: TestAccAWSElasticacheReplicationGroup_ClusterMode_SingleNode (1229.59s)
=== CONT TestAccAWSElasticacheReplicationGroup_updateDescription
--- PASS: TestAccAWSElasticacheReplicationGroup_Uppercase (615.74s)
=== CONT TestAccAWSElasticacheReplicationGroup_redisClusterInVpc2
--- PASS: TestAccAWSElasticacheReplicationGroup_NumberCacheClusters_MemberClusterDisappears_NoChange (1647.18s)
=== CONT TestAccAWSElasticacheReplicationGroup_updateMaintenanceWindow
--- PASS: TestAccAWSElasticacheReplicationGroup_NumberCacheClusters_MultiAZEnabled (1673.32s)
=== CONT TestAccAWSElasticacheReplicationGroup_ClusterMode_UpdateNumNodeGroups_ScaleDown
--- PASS: TestAccAWSElasticacheReplicationGroup_vpc (742.80s)
=== CONT TestAccAWSElasticacheReplicationGroup_ClusterMode_Basic
--- PASS: TestAccAWSElasticacheReplicationGroup_enableAuthTokenTransitEncryption (1799.81s)
=== CONT TestAccAWSElasticacheReplicationGroup_ClusterMode_UpdateNumNodeGroups_ScaleUp
--- PASS: TestAccAWSElasticacheReplicationGroup_NumberCacheClusters_Basic (1927.53s)
=== CONT TestAccAWSElasticacheReplicationGroup_ClusterMode_NonClusteredParameterGroup
--- PASS: TestAccAWSElasticacheReplicationGroup_updateDescription (734.92s)
=== CONT TestAccAWSElasticacheReplicationGroup_FinalSnapshot
--- PASS: TestAccAWSElasticacheReplicationGroup_NumberCacheClusters_Failover_AutoFailoverDisabled (2069.19s)
=== CONT TestAccAWSElasticacheReplicationGroup_updateNodeSize
--- PASS: TestAccAWSElasticacheReplicationGroup_NumberCacheClusters_MemberClusterDisappears_RemoveMemberCluster_AtTargetSize (2101.68s)
=== CONT TestAccAWSElasticacheGlobalReplicationGroup_ReplaceSecondary_DifferentRegion
--- PASS: TestAccAWSElasticacheReplicationGroup_GlobalReplicationGroupId_disappears (2098.60s)
=== CONT TestAccAWSElasticacheReplicationGroup_disappears
--- PASS: TestAccAWSElasticacheReplicationGroup_GlobalReplicationGroupId_Basic (2126.61s)
=== CONT TestAccAWSElasticacheReplicationGroup_Validation_GlobalReplicationGroupIdAndNodeType
--- PASS: TestAccAWSElasticacheReplicationGroup_ClusterMode_UpdateReplicasPerNodeGroup (2241.01s)
=== CONT TestAccAWSElasticacheReplicationGroup_basic
--- PASS: TestAccAWSElasticacheReplicationGroup_redisClusterInVpc2 (705.14s)
=== CONT TestAccAWSElasticacheGlobalReplicationGroup_ClusterMode
--- PASS: TestAccAWSElasticacheReplicationGroup_multiAzInVpc (1623.20s)
=== CONT TestAccAWSElasticacheReplicationGroup_tags
--- PASS: TestAccAWSElasticacheReplicationGroup_updateMaintenanceWindow (707.99s)
=== CONT TestAccAWSElasticacheReplicationGroup_EngineVersion_Update
--- PASS: TestAccAWSElasticacheReplicationGroup_NumberCacheClusters_Failover_AutoFailoverEnabled (2573.64s)
=== CONT TestAccAWSElasticacheGlobalReplicationGroup_Description
--- PASS: TestAccAWSElasticacheReplicationGroup_ClusterMode_NonClusteredParameterGroup (747.39s)
=== CONT TestAccAWSElasticacheReplicationGroup_Validation_NoNodeType
--- PASS: TestAccAWSElasticacheReplicationGroup_Validation_NoNodeType (2.79s)
=== CONT TestAccAWSElasticacheReplicationGroup_NumberCacheClusters_MemberClusterDisappears_RemoveMemberCluster_ScaleDown
--- PASS: TestAccAWSElasticacheReplicationGroup_NumberCacheClusters_MemberClusterDisappears_AddMemberCluster (2680.98s)
=== CONT TestAccAWSElasticacheGlobalReplicationGroup_MultipleSecondaries
--- PASS: TestAccAWSElasticacheReplicationGroup_disappears (605.72s)
=== CONT TestAccAWSElasticacheGlobalReplicationGroup_disappears
--- PASS: TestAccAWSElasticacheReplicationGroup_FinalSnapshot (754.04s)
--- PASS: TestAccAWSElasticacheReplicationGroup_ClusterMode_Basic (1108.17s)
--- PASS: TestAccAWSElasticacheReplicationGroup_Validation_GlobalReplicationGroupIdAndNodeType (682.44s)
--- PASS: TestAccAWSElasticacheReplicationGroup_basic (589.93s)
--- PASS: TestAccAWSElasticacheReplicationGroup_ClusterMode_UpdateNumNodeGroupsAndReplicasPerNodeGroup_ScaleUp (3087.43s)
--- PASS: TestAccAWSElasticacheReplicationGroup_tags (782.90s)
--- PASS: TestAccAWSElasticacheReplicationGroup_ClusterMode_UpdateNumNodeGroupsAndReplicasPerNodeGroup_ScaleDown (3148.27s)
--- PASS: TestAccAWSElasticacheReplicationGroup_multiAzNotInVpc (2330.30s)
--- PASS: TestAccAWSElasticacheGlobalReplicationGroup_Description (861.99s)
--- PASS: TestAccAWSElasticacheGlobalReplicationGroup_ClusterMode (1197.83s)
--- PASS: TestAccAWSElasticacheGlobalReplicationGroup_disappears (744.64s)
--- PASS: TestAccAWSElasticacheReplicationGroup_GlobalReplicationGroupId_Full (2717.42s)
=== CONT TestAccAWSElasticacheGlobalReplicationGroup_ReplaceSecondary_DifferentRegion
resource_aws_elasticache_global_replication_group_test.go:259: Step 2/2 error: Error running apply: exit status 1
2021/07/14 10:13:54 [DEBUG] Using modified User-Agent: Terraform/0.12.31 HashiCorp-terraform-exec/0.14.0
Error: Error creating ElastiCache Replication Group (tf-acc-test-2313420090804203609-t): InvalidGlobalReplicationGroupState: Global Replication Group is not in a valid state to perform this operation. Please retry when the Global Replication Group is in "available" or "primary-only" state.
status code: 400, request id: fe72ef4b-8f2c-4999-bd27-2fe60bae3fb0
on terraform_plugin_test.tf line 134, in resource "aws_elasticache_replication_group" "third":
134: resource "aws_elasticache_replication_group" "third" {
--- PASS: TestAccAWSElasticacheReplicationGroup_updateNodeSize (1576.94s)
--- PASS: TestAccAWSElasticacheReplicationGroup_GlobalReplicationGroupId_ClusterMode_Basic (3196.78s)
--- PASS: TestAccAWSElasticacheReplicationGroup_ClusterMode_UpdateNumNodeGroups_ScaleUp (2072.54s)
--- FAIL: TestAccAWSElasticacheGlobalReplicationGroup_ReplaceSecondary_DifferentRegion (1892.73s)
--- PASS: TestAccAWSElasticacheReplicationGroup_ClusterMode_UpdateNumNodeGroups_ScaleDown (2332.49s)
--- PASS: TestAccAWSElasticacheReplicationGroup_NumberCacheClusters_MemberClusterDisappears_RemoveMemberCluster_ScaleDown (1360.99s)
--- PASS: TestAccAWSElasticacheReplicationGroup_EngineVersion_Update (2638.60s)
--- PASS: TestAccAWSElasticacheGlobalReplicationGroup_MultipleSecondaries (2759.45s)
FAIL
FAIL github.com/terraform-providers/terraform-provider-aws/aws 5443.710s
FAIL
make: *** [testacc] Error 1 The code changes LGTM. |
No, it's not related. I've created #20180 |
This functionality has been released in v3.50.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. |
Currently, the replica count on a Global Replication Group member cannot be set using
cluster_mode.replicas_per_node_group
because settingglobal_replication_group_id
incorrectly conflicts withcluster_mode
.Changes conflicts with setting to conflict with
cluster_mode.num_node_groups
.Closes #19929
Closes #19053
Output from acceptance testing: