I would like to put one Compute Engine instance behind IAP.
I have read the official literature that states that a load balancer needs to be created.
Since I only have one instance to protect, and no autoscaling (i.e there will always be an instance of one), the perspective of having to set-up a load balancer is not frankly exciting as that will incur costs that I would prefer to avoid.
I have tried implementing a lightweight version of the official guide by simply creating a new firewall rule with the following configuration:
And apply to my instance (target tag). I.E, in this config, there is no LB, nor MIG. But a valid SSL cert and domain.
This however, even while authenticated, does not allow me to access my instance.
My 2 questions:
- Why is a LB required?
- Is there a way to use IAP to protect one instance without LB, MIG etc.?
Thanks,
