You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"
The text was updated successfully, but these errors were encountered:
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
locked and limited conversation to collaborators
Sep 10, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
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"
The text was updated successfully, but these errors were encountered: