I have 2 terraformed/k8s-yaml services that have IAP enabled.
In order to maintain the member access list between infra refreshes (when the load balancers get destroyed and so the access list gets wiped) I have assigned the IAM role 'IAP-secured Web App User' to the relevant users.
e.g.
resource "google_project_iam_member" "bob_iap_web_app_user" {
role = "roles/iap.httpsResourceAccessor"
member = "user:bob.cat@meow.com"
}
However this allows access to all IAP protected APIs within the project. Is there a filter you can add to only allow access to a particular load balancer?