-
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
Organization Custom Role seems to be created with GA stage instead of specified value #8443
Comments
I suspect API is returning |
@venkykuberan I created a throaway role with debug on and pasted the gist link up there. Eve though there are some 400 responses in that I ended up in the same situation when running plan afterwards where it wanted to change the stage. The resource in question here is resource "google_organization_iam_custom_role" "tf_bug_reproducer" {
role_id = "terraform-org-role-issue-reproducer"
org_id = data.google_organization.org.org_id
title = "Terraform Org Role Issue Reproducer"
stage = "ALPHA"
description = "Only exists for reproducing terraform issue. Let it be deleted and die"
permissions = ["spanner.databases.create", "spanner.databases.get", "spanner.instances.get"]
} |
@alethenorio per API Doc - https://cloud.google.com/iam/docs/reference/rest/v1/organizations.roles#Role.RoleLaunchStage
Due to that we create the role with default stage Sample API Request & Response
|
Thank you. It is a strange API to not return the value if it is set to ALPHA but that does explain it. |
That's actually pretty unusual. What version of the provider are you using? This looks like it was fixed years ago: #1801 |
We are using version |
Signed-off-by: Modular Magician <[email protected]>
Signed-off-by: Modular Magician <[email protected]>
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
0.14.4
Affected Resource(s)
google_organization_iam_custom_role
Terraform Configuration Files
Terraform apply
Immediately after applying the above running
terraform plan
returns the followingThe text was updated successfully, but these errors were encountered: