-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
google_folder_iam documentation examples: cannot use IAM conditions with primitive roles (roles/editor) #8855
google_folder_iam documentation examples: cannot use IAM conditions with primitive roles (roles/editor) #8855
Comments
Can you share your config and the errors you are getting ? |
I wrote a test case using the example mentioned in the documentation: Configresource "google_folder_iam_member" "folder" {
folder = "folders/############"
role = "roles/editor"
member = "user:xxxx"
condition {
title = "expires_after_2019_12_31"
description = "Expiring at midnight of 2019-12-31"
expression = "request.time < timestamp(\"2020-01-01T00:00:00Z\")"
}
} Error
|
Looks like API is now throwing this error for primitive roles with conditions. We will update the doc., thanks for filing the issue |
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. |
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
3.63.0
Affected Resource(s)
Terraform Configuration Files
N/A
Debug Output
N/A
Panic Output
N/A
Expected Behavior
IAM conditions cannot be applied to bindings of primitive roles (Owner, Editor, Viewer)
Actual Behavior
Documentation provides examples of IAM bindings using IAM conditions with primitive roles (roles/editor). This configuration will fail.
Steps to Reproduce
Documentation: https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/google_folder_iam
sections: google_folder_iam_policy, google_folder_iam_binding, google_folder_iam_member
Important Factoids
This behavior is reflected in the google_project_iam documentation, and this same behavior should be expected with folder resources as well.
References
N/A
The text was updated successfully, but these errors were encountered: