I have a couple of HTTP services running in containers using AWS Fargate. These services are meant to be accessed using an Application Load Balancer, and from a list of selected IP addresses. However, with default settings, the services are open to all inbound traffic.
The containers are all in the same VPC, Security Group and Subnets. The same goes for the load balancer.
I tried restricting the inbound traffic using Network ACLs, but this also blocked connections from the load balancer. What is the correct way of achieving the desired behavior (blocking external traffic)?
question from:
https://stackoverflow.com/questions/65907809/blocking-inbound-traffic-for-aws-vpc-except-from-load-balancer-and-select-addres 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…