-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
aws_elasticache_replication_group snapshot_retention_limit value not being set in state file #8433
Comments
thanks for bringing this to my attention - i will look into this first thing in the morning and see if we can get it fixed asap Paul |
@danielnbarbosa I am unable to reproduce this
|
Hmm, that's strange. Could it be because my resource is in a module? What else can I provide to help trace this down? Also, I would suggest trying with |
Ok, I have been able to recreate this :) So I have the following config:
I apply that and it works:
When i then replan, I see the following:
I can then modify as follows:
Then another plan shows as follows:
I am looking into this right now Paul |
Awesome. Thanks @stack72 ! |
Hi @stack72 AWS does not return Redis/Elasticache SnapshotRetentionLimit as part of the ReplicationGroup; the code must:
The AWS Console does not display SnapshotRetentionLimit either. Instead, it is only available when creating/modifying the ReplicationGroup. I've tested on the console: changing the SnapshotRetentionLimit on the Snapshotting CacheCluster, does show up on the ReplicationGroup when modifying it. I hope it helps Gregory |
Still seeing this in v0.7.5. Anything I can do to help push it across the finish line? |
I'm also seeing this in 0.7.5.
tfstate:
terraform apply:
|
same for 0.7.4 |
Same for 0.7.7. |
Probably fixed by PR #9601 in 0.7.8! At least the issue has disappeared in 0.7.9. Thank you |
Closed - this has no longer been the case since 0.7.8 |
I'm going to lock this issue 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 similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Terraform Version
Terraform v0.7.1
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
Setting snapshot_retention_limit to something other then 0 should stick, and be reflected in the state file.
Actual Behavior
snapshot_retention_limit
always shows as 0 in the state file, forcing a re-converge on everyterraform plan
. The correct value is reflected in AWS.Steps to Reproduce
aws_elasticache_replication_group
with asnapshot_retention_limit
greater then 0.terraform plan
again and it will want to re-converge.The text was updated successfully, but these errors were encountered: