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_replication_group: Fix perpetual diff for Global Replication Group members #24688

Merged
merged 2 commits into from
May 18, 2022

Conversation

gdavison
Copy link
Contributor

@gdavison gdavison commented May 7, 2022

Due to a recent change in the AWS API, aws_elasticache_replication_groups which were secondary members of a global replication group were returning a perpetual diff for auto_minor_version_upgrade.

Output from acceptance testing:

$ make testacc PKG=elasticache PKG=elasticache TESTS=TestAccElastiCacheReplicationGroup

--- PASS: TestAccElastiCacheReplicationGroup_Validation_noNodeType (60.27s)
--- PASS: TestAccElastiCacheReplicationGroup_dataTiering (766.53s)
--- PASS: TestAccElastiCacheReplicationGroup_autoMinorVersionUpgrade (888.84s)
--- PASS: TestAccElastiCacheReplicationGroup_finalSnapshot (1287.60s)
--- PASS: TestAccElastiCacheReplicationGroup_tags (1379.46s)
--- PASS: TestAccElastiCacheReplicationGroup_Validation_globalReplicationGroupIdAndNodeType (1387.13s)
--- PASS: TestAccElastiCacheReplicationGroup_NumberCacheClustersMemberClusterDisappears_noChange (1399.11s)
--- PASS: TestAccElastiCacheReplicationGroupDataSource_basic (1461.84s)
--- PASS: TestAccElastiCacheReplicationGroup_NumberCacheClustersMemberClusterDisappears_addMemberCluster (1462.86s)
--- PASS: TestAccElastiCacheReplicationGroup_clusteringAndCacheNodesCausesError (2.51s)
--- PASS: TestAccElastiCacheReplicationGroup_NumberCacheClustersMemberClusterDisappearsRemoveMemberCluster_atTargetSize (1484.48s)
--- PASS: TestAccElastiCacheReplicationGroup_Engine_Redis_LogDeliveryConfigurations_ClusterMode_Disabled (1525.60s)
--- PASS: TestAccElastiCacheReplicationGroup_GlobalReplicationGroupIDClusterModeValidation_numNodeGroupsOnSecondary (1562.78s)
--- PASS: TestAccElastiCacheReplicationGroup_NumberCacheClusters_multiAZEnabled (1583.11s)
--- PASS: TestAccElastiCacheReplicationGroup_NumberCacheClustersMemberClusterDisappearsRemoveMemberCluster_scaleDown (1804.79s)
--- PASS: TestAccElastiCacheReplicationGroup_tagWithOtherModification (1824.69s)
--- PASS: TestAccElastiCacheReplicationGroup_Engine_Redis_LogDeliveryConfigurations_ClusterMode_Enabled (1906.11s)
--- PASS: TestAccElastiCacheReplicationGroup_ValidationMultiAz_noAutomaticFailover (2.53s)
--- PASS: TestAccElastiCacheReplicationGroup_useCMKKMSKeyID (772.87s)
--- PASS: TestAccElastiCacheReplicationGroup_enableAtRestEncryption (713.09s)
--- PASS: TestAccElastiCacheReplicationGroup_NumberCacheClustersFailover_autoFailoverDisabled (1326.09s)
--- PASS: TestAccElastiCacheReplicationGroup_enableAuthTokenTransitEncryption (774.37s)
--- PASS: TestAccElastiCacheReplicationGroup_ClusterMode_singleNode (872.98s)
--- PASS: TestAccElastiCacheReplicationGroup_enableSnapshotting (964.08s)
--- PASS: TestAccElastiCacheReplicationGroup_NumberCacheClusters_basic (1674.35s)
--- PASS: TestAccElastiCacheReplicationGroup_NumberCacheClustersFailover_autoFailoverEnabled (2504.19s)
--- PASS: TestAccElastiCacheReplicationGroup_deprecatedAvailabilityZones_multiAzInVPC (864.15s)
--- PASS: TestAccElastiCacheReplicationGroup_GlobalReplicationGroupID_basic (2843.93s)
--- PASS: TestAccElastiCacheReplicationGroup_ClusterMode_basic (1057.44s)
--- PASS: TestAccElastiCacheReplicationGroup_multiAzInVPC (955.91s)
--- PASS: TestAccElastiCacheReplicationGroup_multiAzNotInVPC (911.43s)
--- PASS: TestAccElastiCacheReplicationGroup_depecatedAvailabilityZones_vpc (782.57s)
--- PASS: TestAccElastiCacheReplicationGroup_multiAzNotInVPC_repeated (1042.64s)
--- PASS: TestAccElastiCacheReplicationGroup_GlobalReplicationGroupID_disappears (3173.55s)
--- PASS: TestAccElastiCacheReplicationGroup_ClusterMode_nonClusteredParameterGroup (1557.07s)
--- PASS: TestAccElastiCacheReplicationGroup_vpc (1058.00s)
--- PASS: TestAccElastiCacheReplicationGroup_updateParameterGroup (911.83s)
--- PASS: TestAccElastiCacheReplicationGroupDataSource_nonExistent (3.45s)
--- PASS: TestAccElastiCacheReplicationGroup_ClusterMode_updateReplicasPerNodeGroup (1966.80s)
--- PASS: TestAccElastiCacheReplicationGroup_updateAuthToken (978.25s)
--- PASS: TestAccElastiCacheReplicationGroup_disappears (573.73s)
--- PASS: TestAccElastiCacheReplicationGroup_GlobalReplicationGroupID_full (3721.67s)
--- PASS: TestAccElastiCacheReplicationGroup_updateMaintenanceWindow (881.03s)
--- PASS: TestAccElastiCacheReplicationGroup_updateDescription (767.97s)
--- PASS: TestAccElastiCacheReplicationGroup_basic_v5 (769.47s)
--- PASS: TestAccElastiCacheReplicationGroup_updateUserGroups (1102.88s)
--- PASS: TestAccElastiCacheReplicationGroup_uppercase (813.26s)
--- PASS: TestAccElastiCacheReplicationGroup_GlobalReplicationGroupIDClusterMode_basic (3992.44s)
--- PASS: TestAccElastiCacheReplicationGroup_ClusterModeUpdateNumNodeGroupsAndReplicasPerNodeGroup_scaleUp (2520.69s)
--- PASS: TestAccElastiCacheReplicationGroup_basic (710.38s)
--- PASS: TestAccElastiCacheReplicationGroup_ClusterModeUpdateNumNodeGroups_scaleDown (2542.31s)
--- PASS: TestAccElastiCacheReplicationGroup_deprecatedAvailabilityZones_multiAzNotInVPC (2203.93s)
--- PASS: TestAccElastiCacheReplicationGroupDataSource_Engine_Redis_LogDeliveryConfigurations (898.32s)
--- PASS: TestAccElastiCacheReplicationGroupDataSource_multiAZ (878.86s)
--- PASS: TestAccElastiCacheReplicationGroup_ClusterModeUpdateNumNodeGroupsAndReplicasPerNodeGroup_scaleDown (2907.00s)
--- PASS: TestAccElastiCacheReplicationGroup_ClusterModeUpdateNumNodeGroups_scaleUp (2832.78s)
--- PASS: TestAccElastiCacheReplicationGroup_updateNodeSize (1686.93s)
--- PASS: TestAccElastiCacheReplicationGroupDataSource_clusterMode (989.00s)
--- PASS: TestAccElastiCacheReplicationGroup_EngineVersion_update (4751.95s)

@github-actions github-actions bot added service/elasticache Issues and PRs that pertain to the elasticache service. size/XS Managed by automation to categorize the size of a PR. labels May 7, 2022
@gdavison gdavison marked this pull request as ready for review May 17, 2022 23:35
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 🚀.

% make testacc TESTS=TestAccElastiCacheReplicationGroup_basic PKG=elasticache
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/elasticache/... -v -count 1 -parallel 20 -run='TestAccElastiCacheReplicationGroup_basic'  -timeout 180m
=== RUN   TestAccElastiCacheReplicationGroup_basic
=== PAUSE TestAccElastiCacheReplicationGroup_basic
=== RUN   TestAccElastiCacheReplicationGroup_basic_v5
=== PAUSE TestAccElastiCacheReplicationGroup_basic_v5
=== CONT  TestAccElastiCacheReplicationGroup_basic
=== CONT  TestAccElastiCacheReplicationGroup_basic_v5
--- PASS: TestAccElastiCacheReplicationGroup_basic_v5 (709.27s)
--- PASS: TestAccElastiCacheReplicationGroup_basic (709.40s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/elasticache	713.429s

@ewbankkit
Copy link
Contributor

Does this need a CHANGELOG entry?

@gdavison gdavison merged commit a005062 into main May 18, 2022
@gdavison gdavison deleted the fix-elasticache-replicationgroup-perpetual-diff branch May 18, 2022 18:59
@github-actions github-actions bot added this to the v4.15.0 milestone May 18, 2022
github-actions bot pushed a commit that referenced this pull request May 18, 2022
@github-actions
Copy link

This functionality has been released in v4.15.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 Jun 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/elasticache Issues and PRs that pertain to the elasticache service. size/XS Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants