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

Fix docs for importing google_folder_iam_binding example #6220

Closed
red8888 opened this issue Apr 27, 2020 · 1 comment · Fixed by GoogleCloudPlatform/magic-modules#3844, #6991 or hashicorp/terraform-provider-google-beta#2365

Comments

@red8888
Copy link

red8888 commented Apr 27, 2020

I wasted a little time on this and I think it would be easy to make it a little more obvious: https://www.terraform.io/docs/providers/google/r/google_folder_iam_binding.html

IAM binding imports use space-delimited identifiers; first the resource in question and then the role. These bindings can be imported using the folder and role, e.g.

$ terraform import google_folder_iam_binding.viewer "folder-name roles/viewer"

folder-name should be changed to folder-id and maybe an example?

I could not understand why this wasnt working:
$ terraform import google_folder_iam_binding.viewer "myfolder roles/viewer"
I needed to use the ID
$ terraform import google_folder_iam_binding.viewer "123456789012 roles/viewer"

@ghost
Copy link

ghost commented Sep 10, 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 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!

@ghost ghost locked and limited conversation to collaborators Sep 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.