Open sairamkotapati-github opened 6 months ago
Voting for Prioritization
Volunteering to Work on This Issue
Potentially also related to #33859
Note: I'm triaging new issues at the moment and so haven't looked into this enough to know if it's related for certain, but ☝️ that issue and the ones you'd already linked seem suspiciously similar to my eye.
@justinretzolk thank you, we used aws provider 5.41.0 and that definitely helped get past the original issue that I reported above. But if we try to enable log_delivery_configuration using dynamic block at the same time while upgrading engine version we are running into below issue
updating ElastiCache Replication Group (<groupName>): InvalidParameterValue: slow-log log delivery is not available for this redis engine version.
Note - If we do the engine version upgrade by itself without enabling log delivery configuration it does work fine, and then we could enable log delivery configuration but am trying to see if we could update at the same time.
Terraform Core Version
1.3.7
AWS Provider Version
4.67.0, 5.26.0
Affected Resource(s)
aws_elasticache_replication_group
Expected Behavior
Changing the redis engine_version from 5.0.6 to 7.1 along with updating tags resource should be successful after running the terraform apply command
Actual Behavior
Got below error when terraform apply is run
updating ElastiCache Replication Group (<replication-group-name>): InvalidReplicationGroupState: Replication group must be in available state to modify.
When I run terraform plan again followed by terraform apply it works since tags are already updated already in previous attemptAdditional details
When I checked in AWS console tags are already updated on the cluster which tells me there is a race condition in terms of updating Tags and upgrading engine version.
There are two back to back CloudTrail events AddTagsToResource and ModifyReplicationGroup at the same time
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
aws_elasticache_replication_group
and engine_version5.0.6
7.1
and also updatetags
for resourceaws_elasticache_replication_group
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
Below two issues are relevant in the sense they are reported for being unable to update tags but for current bug that am reporting its quite opposite tags are updated first but unable to update redis engine version https://github.com/hashicorp/terraform-provider-aws/issues/23219 https://github.com/hashicorp/terraform-provider-aws/issues/35952
Would you like to implement a fix?
No