Closed AndreasBergmeier6176 closed 2 years ago
@AndreasBergmeier6176 below error is from api and it seems to be clear. There is not much the provider can do. Where did you see this member is valid? Can you create the policy with other methods?
Error 400: The member principalSet://iam.googleapis.com/all/attribute.repository/hashicorp/terraform-provider-google is of an unknown type
@AndreasBergmeier6176 below error is from api and it seems to be clear. There is not much the provider can do. Where did you see this member is valid?
We saw the member working with google_service_account_iam_member
. How come it works for _member
but not for _policy
?
I think you need google_iam_workload_identity_pool.default.id
instead of google_iam_workload_identity_pool.default.workload_identity_pool_id
.
Looking at https://cloud.google.com/iam/docs/workload-identity-federation#impersonation the format is documented as
principalSet://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_ID/attribute.ATTRIBUTE_NAME/ATTRIBUTE_VALUE
@fiadliel Thanks a lot. It indeed was the problem. Seems like the error message of the API is a bit misleading.
Closing this then
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
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
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
Should just work.
Actual Behavior
Steps to Reproduce
terraform apply
Important Factoids
There were some bugs for that previously - maybe policy was forgotten?
References
0000