You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a google_redis_instance without specifying alternative_location_id, the alternative location is automatically assigned. I'd expect this computed value to be persisted to the state in such a way that subsequent updates didn't try to clear it.
Actual Behavior
On subsequent terraform apply runs with no other related changes, terraform wants to recreate the instance to set alternative_location_id back to a blank string:
Manually modifying the instance specification and setting alternative_location_id = "us-central1-b" to match the generated value works around this and terraform no longer desires to recreate the instance.
Steps to Reproduce
Specify a STANDARD_HA redis instance without an explicit alternative_location_id
terraform apply
terraform apply
The text was updated successfully, but these errors were encountered:
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!
ghost
locked and limited conversation to collaborators
Nov 17, 2018
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
When creating a
google_redis_instance
without specifyingalternative_location_id
, the alternative location is automatically assigned. I'd expect this computed value to be persisted to the state in such a way that subsequent updates didn't try to clear it.Actual Behavior
On subsequent
terraform apply
runs with no other related changes, terraform wants to recreate the instance to setalternative_location_id
back to a blank string:Manually modifying the instance specification and setting
alternative_location_id = "us-central1-b"
to match the generated value works around this and terraform no longer desires to recreate the instance.Steps to Reproduce
STANDARD_HA
redis instance without an explicitalternative_location_id
terraform apply
terraform apply
The text was updated successfully, but these errors were encountered: