Question
Restricting port 80 to private network with a cloud firewall, using terraform.
Hi,
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?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×