-
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
role_id with more than 30 characters doesn't match regexp #3658
Comments
This is caused by bc232a2 which was first released in 2.6.0. Can confirm the issue does not occur with version 2.5.1 of the |
This role id is accepted by gcloud:
|
"myproject.cloudStorageObjectCreator" is 36 characters, while the documentation the validation function was written from specifies a max of 30 characters. I'll find out what the actual boundary is and update the documentation and validation function. For reference: https://cloud.google.com/iam/docs/understanding-custom-roles#naming_the_role |
Here's the actual limit:
This passes:
|
Thanks for reporting, @pdecat! Next time, would you mind keeping the lines in the issue template that say to keep them for our automation? That helps HashiBot automatically assign the correct label to the issue, which makes it easier for us to triage. It's also nice to keep the community note too that way people understand how we hope they react to the issue. |
Hi @danawillow, I was actually surprised not to find the usual issue template when I opened this issue this morning. |
Actually, I had an error when accessing https://github.com/terraform-providers/terraform-provider-google/issues/new/choose, refreshing did not help, then I removed the Maybe the default template should also be updated. |
Ah I see, thanks! Will do! |
This is the template that is filled in when someone clicks "Open a regular issue". Updated to use some of the language we use in the bug template, as well as link back to the other templates. See #3658 (comment)
This is the template that is filled in when someone clicks "Open a regular issue". Updated to use some of the language we use in the bug template, as well as link back to the other templates. See #3658 (comment)
Thanks @rremer & @danawillow! |
Fix confirmed with provider version 2.7.0, thanks again! |
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
Affected Resource(s)
Please list the resources as a list, for example:
google_project_iam_custom_role
Terraform Configuration Files
Debug Output
N/A
Panic Output
N/A
Expected Behavior
What should have happened?
Configuration should apply fine like in previous versions up to 2.5.1.
Actual Behavior
What actually happened?
Configuration is rejected:
Steps to Reproduce
terraform plan
Important Factoids
N/A
References
N/A
The text was updated successfully, but these errors were encountered: