-
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
Fix ElastiCache Redis versioning #23734
Fix ElastiCache Redis versioning #23734
Conversation
@ewbankkit , @gdavison quickly checking with you guys. In the ModifyCacheCluster, specifying EngineVersion as 6.x is just ignored by the looks of it. It seems to only be possible in the CreateCacheCluster call. We previously didn't face any issues as no-one went from I suppose not supporting |
I've removed the support of Please let me know what you think. |
I'll let @gdavison take a look at this as he has much experience with ElastiCache. |
Any updates on this? |
Thanks for creating this PR, @bschaatsbergen. We'll need to continue supporting the Otherwise, the PR is looking good. |
Clear, @gdavison what do you recommend on how to proceed? As it looks like that the 6.x is completely ignored when it's passed down to the UpdateCluster call (e.g. updating from 6.0 to 6.x) |
I think With explicit version numbers, we'll have to:
|
… but minor with a `x`
6ebbd3e
to
ca61710
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.
Thanks for this PR, @bschaatsbergen. Looks good! 🚀
--- PASS: TestAccElastiCacheReplicationGroup_Validation_noNodeType (58.87s)
--- PASS: TestAccElastiCacheClusterDataSource_Data_basic (503.98s)
--- PASS: TestAccElastiCacheCluster_NumCacheNodes_increaseWithPreferredAvailabilityZones (805.28s)
--- PASS: TestAccElastiCacheReplicationGroup_finalSnapshot (875.91s)
--- PASS: TestAccElastiCacheReplicationGroup_autoMinorVersionUpgrade (895.24s)
--- PASS: TestAccElastiCacheReplicationGroup_tags (955.49s)
--- PASS: TestAccElastiCacheReplicationGroup_dataTiering (1035.39s)
--- PASS: TestAccElastiCacheReplicationGroup_updateMaintenanceWindow (1160.22s)
--- PASS: TestAccElastiCacheCluster_ReplicationGroupID_multipleReplica (1173.02s)
--- PASS: TestAccElastiCacheReplicationGroup_tagWithOtherModification (1244.32s)
--- PASS: TestAccElastiCacheReplicationGroup_Validation_globalReplicationGroupIdAndNodeType (1442.98s)
--- PASS: TestAccElastiCacheReplicationGroup_clusteringAndCacheNodesCausesError (2.13s)
--- PASS: TestAccElastiCacheReplicationGroup_Engine_Redis_LogDeliveryConfigurations_ClusterMode_Enabled (1451.24s)
--- PASS: TestAccElastiCacheReplicationGroup_Engine_Redis_LogDeliveryConfigurations_ClusterMode_Disabled (1454.04s)
--- PASS: TestAccElastiCacheReplicationGroup_NumberCacheClustersMemberClusterDisappears_addMemberCluster (1672.43s)
--- PASS: TestAccElastiCacheReplicationGroup_NumberCacheClustersMemberClusterDisappearsRemoveMemberCluster_atTargetSize (1732.78s)
--- PASS: TestAccElastiCacheReplicationGroup_GlobalReplicationGroupIDClusterModeValidation_numNodeGroupsOnSecondary (1749.87s)
--- PASS: TestAccElastiCacheReplicationGroup_useCMKKMSKeyID (867.75s)
--- PASS: TestAccElastiCacheReplicationGroup_NumberCacheClustersMemberClusterDisappears_noChange (1433.66s)
--- PASS: TestAccElastiCacheReplicationGroup_NumberCacheClustersMemberClusterDisappearsRemoveMemberCluster_scaleDown (2022.44s)
--- PASS: TestAccElastiCacheReplicationGroup_enableSnapshotting (819.08s)
--- PASS: TestAccElastiCacheReplicationGroup_ValidationMultiAz_noAutomaticFailover (2.84s)
--- PASS: TestAccElastiCacheReplicationGroup_enableAuthTokenTransitEncryption (995.50s)
--- PASS: TestAccElastiCacheReplicationGroup_ClusterMode_singleNode (795.05s)
--- PASS: TestAccElastiCacheReplicationGroup_NumberCacheClustersFailover_autoFailoverDisabled (1347.65s)
--- PASS: TestAccElastiCacheReplicationGroup_enableAtRestEncryption (1189.06s)
--- PASS: TestAccElastiCacheReplicationGroup_NumberCacheClustersFailover_autoFailoverEnabled (1593.58s)
--- PASS: TestAccElastiCacheCluster_NumCacheNodes_redis (2.64s)
--- PASS: TestAccElastiCacheReplicationGroup_ClusterMode_nonClusteredParameterGroup (751.01s)
--- PASS: TestAccElastiCacheReplicationGroup_NumberCacheClusters_multiAZEnabled (1855.91s)
--- PASS: TestAccElastiCacheReplicationGroup_NumberCacheClusters_basic (1869.13s)
--- PASS: TestAccElastiCacheReplicationGroup_GlobalReplicationGroupID_basic (2839.17s)
--- PASS: TestAccElastiCacheReplicationGroup_disappears (644.73s)
--- PASS: TestAccElastiCacheReplicationGroup_ClusterMode_basic (977.88s)
--- PASS: TestAccElastiCacheReplicationGroup_updateDescription (857.99s)
--- PASS: TestAccElastiCacheReplicationGroup_GlobalReplicationGroupID_disappears (3042.92s)
--- PASS: TestAccElastiCacheReplicationGroup_multiAzInVPC (874.00s)
--- PASS: TestAccElastiCacheReplicationGroup_deprecatedAvailabilityZones_multiAzInVPC (1116.75s)
--- PASS: TestAccElastiCacheCluster_ReplicationGroupID_availabilityZone (1383.63s)
--- PASS: TestAccElastiCacheReplicationGroup_uppercase (670.60s)
--- PASS: TestAccElastiCacheCluster_ReplicationGroupID_singleReplica (1535.64s)
--- PASS: TestAccElastiCacheReplicationGroup_ClusterMode_updateReplicasPerNodeGroup (1856.21s)
--- PASS: TestAccElastiCacheReplicationGroup_GlobalReplicationGroupIDClusterMode_basic (3613.86s)
--- PASS: TestAccElastiCacheReplicationGroupDataSource_nonExistent (2.55s)
--- PASS: TestAccElastiCacheReplicationGroup_multiAzNotInVPC_repeated (911.75s)
--- PASS: TestAccElastiCacheReplicationGroup_basic_v5 (710.60s)
--- PASS: TestAccElastiCacheReplicationGroup_multiAzNotInVPC (840.55s)
--- PASS: TestAccElastiCacheCluster_NodeTypeResize_redis (1103.58s)
--- PASS: TestAccElastiCacheCluster_NodeTypeResize_memcached (905.76s)
--- PASS: TestAccElastiCacheReplicationGroup_GlobalReplicationGroupID_full (3810.56s)
--- PASS: TestAccElastiCacheReplicationGroup_depecatedAvailabilityZones_vpc (701.66s)
--- PASS: TestAccElastiCacheReplicationGroup_ClusterModeUpdateNumNodeGroups_scaleUp (2267.26s)
--- PASS: TestAccElastiCacheReplicationGroup_ClusterModeUpdateNumNodeGroupsAndReplicasPerNodeGroup_scaleUp (2563.03s)
--- PASS: TestAccElastiCacheCluster_AZMode_redis (527.07s)
--- PASS: TestAccElastiCacheReplicationGroup_basic (698.74s)
--- PASS: TestAccElastiCacheReplicationGroup_vpc (701.88s)
--- PASS: TestAccElastiCacheReplicationGroup_ClusterModeUpdateNumNodeGroupsAndReplicasPerNodeGroup_scaleDown (2774.50s)
--- PASS: TestAccElastiCacheCluster_AZMode_memcached (527.24s)
--- PASS: TestAccElastiCacheCluster_multiAZInVPC (498.05s)
--- PASS: TestAccElastiCacheReplicationGroup_ClusterModeUpdateNumNodeGroups_scaleDown (2592.11s)
--- PASS: TestAccElastiCacheCluster_Memcached_finalSnapshot (2.65s)
--- PASS: TestAccElastiCacheCluster_EngineVersion_memcached (982.77s)
--- PASS: TestAccElastiCacheReplicationGroup_deprecatedAvailabilityZones_multiAzNotInVPC (1700.19s)
--- PASS: TestAccElastiCacheReplicationGroupDataSource_Engine_Redis_LogDeliveryConfigurations (805.11s)
--- PASS: TestAccElastiCacheReplicationGroupDataSource_multiAZ (739.30s)
--- PASS: TestAccElastiCacheCluster_vpc (468.97s)
--- PASS: TestAccElastiCacheReplicationGroup_updateAuthToken (882.90s)
--- PASS: TestAccElastiCacheReplicationGroupDataSource_clusterMode (868.24s)
--- SKIP: TestAccElastiCacheCluster_SecurityGroup_ec2Classic (0.89s)
--- PASS: TestAccElastiCacheReplicationGroup_updateParameterGroup (960.78s)
--- PASS: TestAccElastiCacheCluster_tagWithOtherModification (571.48s)
--- PASS: TestAccElastiCacheCluster_tags (462.45s)
--- PASS: TestAccElastiCacheCluster_Redis_autoMinorVersionUpgrade (524.33s)
--- PASS: TestAccElastiCacheReplicationGroupDataSource_basic (830.99s)
--- PASS: TestAccElastiCacheCluster_Engine_None (2.39s)
--- PASS: TestAccElastiCacheCluster_Redis_finalSnapshot (689.39s)
--- PASS: TestAccElastiCacheCluster_ParameterGroupName_default (454.77s)
--- PASS: TestAccElastiCacheCluster_snapshotsWithUpdates (499.30s)
--- PASS: TestAccElastiCacheReplicationGroup_updateUserGroups (986.10s)
--- PASS: TestAccElastiCacheCluster_Engine_redis_v5 (474.33s)
--- PASS: TestAccElastiCacheCluster_port (454.71s)
--- PASS: TestAccElastiCacheCluster_Engine_memcached (445.07s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_disappears (849.55s)
--- PASS: TestAccElastiCacheCluster_PortRedis_default (505.53s)
--- PASS: TestAccElastiCacheCluster_Engine_Redis_LogDeliveryConfigurations (939.81s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_clusterMode (1215.09s)
--- PASS: TestAccElastiCacheCluster_EngineVersion_redis (2321.67s)
--- PASS: TestAccElastiCacheCluster_Engine_redis (455.36s)
--- PASS: TestAccElastiCacheCluster_NumCacheNodes_increase (675.10s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_basic (972.98s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_description (1122.36s)
--- PASS: TestAccElastiCacheCluster_NumCacheNodes_decrease (802.66s)
--- PASS: TestAccElastiCacheClusterDataSource_Engine_Redis_LogDeliveryConfigurations (734.72s)
--- PASS: TestAccElastiCacheReplicationGroup_updateNodeSize (1979.62s)
--- PASS: TestAccElastiCacheReplicationGroup_EngineVersion_update (4738.97s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_multipleSecondaries (3195.48s)
--- PASS: TestAccElastiCacheGlobalReplicationGroup_ReplaceSecondary_differentRegion (3384.08s)
This functionality has been released in v4.12.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! |
@bschaatsbergen hey Bruno, much appreciated your contribution to the bug fix. I'm wondering if we could also add the same fix to the version 3.x of the provider? We really wanted to be able to use this feature, but upgrading all our modules to the version 4.x with a breaking change is a huge pain :( |
I just tried changing to explicit |
I would have to dive into this again to answer your question, perhaps @gdavison knows from the top of his head? I believe it was something along the lines like:
|
@bschaatsbergen but The |
I tried to explicitly set the
Could this issue be solved by using |
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. |
Community Note
Closes #22385
Output from acceptance testing: