-
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
terrraform is trying to recreate my redshift cluster because of : publicly_accessible: "" => "0" #5494
Comments
Hey @frederic-jomedia – sorry for the trouble here. This behavior was changed in #5262 and documented in the CHANGELOG as a backwards incompatible change in v0.6.12: Basically, the default should be This is of course assuming you did create the cluster with v0.6.11. If you did not please let me know, otherwise I'm going to close this for now. Sorry for the trouble |
Is there a way to "hack" the tfstate so I can still use terraform to handle my redshift cluster ? because plan wants to recreate it now tx |
Also it still should not recreate the cluster for a change that can be done on AWS side without any impact on the cluster and the data |
I believe you can insert the 0 for publicly accessible in your statefile, but I would verify that with a plan to ensure 😄
Absolutely correct. I opened #5540 to track that separately, and I'm going to close this. The change should be simple enough, but I may not get to it this week. Thanks, and sorry for the hassle here |
@frederic-jomedia hey, small update, while we have #5540 open to track the change to make this not be a force new operation, we've found out that said operation is not actually exposed in the API at all yet. We'll leave that issue open and get it done when it's finally exposed in the API. |
Hello, I will follow #5540 |
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. |
I created my redshift cluster with terraform and did not set publicly_accessible (because of the default = true)
Cluster was created without any issue but now, if I run terraform plan, terraform wants to destroy and re created the redshfit cluster because of :
publicly_accessible: "" => "0" (forces new resource)
It seems that terraform sees the value emptied event if in AWS I have : Publicly Accessible Yes
Also this parameter should not trigger a re creation of the all cluster.
I might have created it with version V0.6.11 and now running V0.6.12
The text was updated successfully, but these errors were encountered: