Ability to reference a GKE google_compute_backend_service by kubernetes.io/service-name label #10813
Labels
enhancement
forward/review
In review; remove label to forward
service/compute-l7-load-balancer
service/iap
Community Note
Description
I would like to reopen issue #5468 given that team who was a candidate to implement the functionality (the GKE team) has closed the associated Buganizer ticket as
Won't Fix Infeasible)
and instructed people to use thegcloud iap web
command. I believe this is, ultimately, the same API thatterraform-provider-google
uses.I'm going to copy over the information from the original ticket, but would be perfectly happy if we closed this one and reopened #5468.
--
Begin the original bug:
I have several GCE Ingresses with Identity-Aware Proxy enabled and I'm attempting to use Terraform specify which G Suite user groups are allowed to access (via the
iap.httpsResourceAccessor
role).The GCE Ingresses and therefore also the corresponding Backend Services are managed by GKE, not Terraform. Therefore I am attempting to use the
google_compute_backend_service
data source reference in mygoogle_iap_web_backend_service_iam_policy
but am struggling to work out how to inform Terraform of the correctname
attribute since it's an auto-generated name, e.g.k8s-be-12345--1234a12345xy78za
.The Kubernetes service name is available within the description of the backendServices API:
Could this be used to allow me to select which GCE Ingress I want to refer to in the
google_compute_backend_service
data source?New or Affected Resource(s)
google_compute_backend_service
google_iap_web_backend_service_iam_policy
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: