Host ec2 instance in private subnet
Host network load balancer in public subnet
How to connect with ec2 machine via load balancer
Creating a Private Subnet is the same as creating a Public Subnet, just don’t assign it a Public IP address:
- Do not enable “Map Public IPv4 address” or “Assign IPv6 address”.