-
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
Terraform fails to create "google_iap_web_backend_service_iam_binding" #4515
Comments
Hey @JanMa Sorry about this! I see the issue, the resource is not parsing the backend service self link correctly. As a workaround you can specify just the short name of the backend service, so rather than I'll get this fixed |
On further review, I'm not sure passing a backend service self link to an IAP IAM resource is going to work, as these resources operate on entirely different products. I'll move this to an enhancement, as it would certainly be nice to have Changing your config to |
Hello @slevenick thank you very much for your quick response. I tried your suggested workaround using the Kind regards, |
Hello @slevenick I have tried both your suggestion and I am still receiving I am getting this error message when using |
I'm also getting the same type of behavior: PROJECT ID = management-299206 `Terraform v0.12.29 Error: Error retrieving IAM policy for iap webbackendservice "projects/management-299206/iap_web/compute/services/jenkins-https-lb-backend-default": googleapi: Error 403: The caller does not have permission` This is a piece of TF which tries to create binding: resource "google_iap_web_backend_service_iam_binding" "enable-iap-access-to-jenkins" { |
This looks like a permission issue rather than the issue with the self link the others are seeing. Are you sure that the service account/user that Terraform is using has access to set IAP IAM? |
@slevenick yep you are right, SA had Primitive Editor Role, which doesn't cover IAP. Thank you |
* mark field as updatable Co-authored-by: upodroid <[email protected]> * add google hc ds Co-authored-by: upodroid <[email protected]> Signed-off-by: Modular Magician <[email protected]>
* mark field as updatable Co-authored-by: upodroid <[email protected]> * add google hc ds Co-authored-by: upodroid <[email protected]> Signed-off-by: Modular Magician <[email protected]> Co-authored-by: upodroid <[email protected]>
I suspect this predated the |
Do you have any new on that bug ? Seems to still not work. |
Verified that this work with version = "4.51.0". I think this bug can be closed. |
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
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/JanMa/5d47695c38ec6406fc6d2cab7643ef50
Expected Behavior
Terraform should create the
google_iap_web_backend_service_iam_binding
. My google account has all the necessary permissions for it.Actual Behavior
Terraform fails with the error message
I suspect the url it tries to use is wrong. It should be something like
projects/<project-name>/iap_web/compute/services/compute
Steps to Reproduce
Create an IAP loadbalancer and try to apply the config shown above.
If you need more detailed configuration I will try to write a simple config which can reproduce the issue.
Important Factoids
I am running this as a user account and not with a service account.
b/299442846
The text was updated successfully, but these errors were encountered: