-
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
data.google_organization.id returns organization/id instead of just the id #5098
Comments
Wow, that was fast. Anyhow docu just says
https://www.terraform.io/docs/providers/google/d/google_organization.html |
Just for others, my current workaround org_id = tonumber(replace(tostring(data.google_organization.company.id), "organizations/", "")) Would it be possible to note all the resources in the upgrade guide that are affected? Currently i have a lot of |
I believe, the problem is "id" attribute was not officially exported anywhere with a few exceptions like this one, so it has to be addresses personally. |
Honestly, this has a bigger impact. So far for terraform plan output
terraform apply output
|
So I was bit by this... started working on a PR to add Once this is released, you can use You can build your own latest with these instructions. But I'm using @Nosmoht 's snippet for now |
This |
Sorry about the disruption! This and a few resources- particularly, datasources- slipped through the cracks and didn't have a great equivalent. I'm closing this out since that's available, if I missed anything or you feel this isn't resolved, feel free to reopen it / comment! |
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! |
Community Note
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
data.google_organization.id should just return the
id
, notorganizations/id
.Actual Behavior
data.google_organization.id returns
organization/id
.Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: