Restricting port 80 to private network with a cloud firewall, using terraform.
I’m using terraform to provision an environment. But I’m running into an issue.
I’d like to terminate SSL on the LB, and then restrict port 80 on my 2 backend servers to only allow the LB to connect on the private network.
The problem I’m seeing with terraform is, there’s no way to define a private IP for the LB (no output, seems it only outputs the public IP).
Is there a way to at least restrict it to the private network CIDR without knowing it ahead of time?