Skip to content
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

Closed
frederic-joventures opened this issue Mar 7, 2016 · 7 comments

Comments

@frederic-joventures
Copy link

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

@catsby
Copy link
Contributor

catsby commented Mar 7, 2016

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 true here, and now it is. A Redshift cluster created before v0.6.12 was incorrectly getting a default of false, e.g. it was not publicly accessible.

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

@catsby catsby closed this as completed Mar 7, 2016
@frederic-joventures
Copy link
Author

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

@frederic-joventures
Copy link
Author

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

@catsby
Copy link
Contributor

catsby commented Mar 9, 2016

I believe you can insert the 0 for publicly accessible in your statefile, but I would verify that with a plan to ensure 😄

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

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

@catsby catsby reopened this Mar 9, 2016
@catsby catsby closed this as completed Mar 10, 2016
@catsby
Copy link
Contributor

catsby commented Mar 11, 2016

@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.

@frederic-joventures
Copy link
Author

Hello,
tx for the feedback.
I added
"publicly_accessible": "true",
to terraform.tfstate
and it did the trick

I will follow #5540

@ghost
Copy link

ghost commented Apr 27, 2020

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.

@ghost ghost locked and limited conversation to collaborators Apr 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants