-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Cannot move a project which was created with org_id into a folder #1701
Comments
Thanks for the report! This is a limitation of Terraform, unfortunately - the org id and folder id are both |
Thanks for the comment! |
Hm, interesting! Let me see what I can figure out there. |
Hm! It seems Terraform can't tell the difference between set to empty-string and unset, and so it's picking up the computed value. I wonder if there's any way at all to make Terraform understand this. I'll keep trying to figure it out. |
Okay, unfortunately this problem isn't going to be addressable with HCL in its current state. I'm told there's lots of changes coming down the pipe, but for now, here's the only workaround I can figure out. Go into your terraform.tfstate file and manually remove the line reading |
OK, thanks! |
I just got bitten by this with an imported project, but the suggested approach fixed it. Thanks @ndmckinley. |
@ndmckinley Is there any way we could try to work around this within the provider? It's a problem I'm seeing pretty frequently. |
This is one of the most-common problems with HCL and the current ResourceData model. Working around it would require either getting code submitted to terraform core (which we've been advised won't be possible until |
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 👉 [email protected]. Thanks! |
Terraform Version
Terraform v0.11.7
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
org_id
field and addfolder_id
will move a project into the folderActual Behavior
org_id
Steps to Reproduce
terraform apply
to create a GCP project withorg_id
org_id
line, and addfolder_id
terraform apply
againThe text was updated successfully, but these errors were encountered: