Search code examples
amazon-web-servicesamazon-elastic-beanstalkamazon-elb

Restricting ElasticBeanstalk app using security groups


How to restrict elastic beanstalk web app using security groups? I tried allowing HTTP/HTTPS inbound rules to my IP address plus the eb load balancers but I get a 504 gateway time out error.

I get the IP address by looking up the network interface associated with the particular eb load balancer under EC2 > Network & Security > Network Interfaces.


Solution

  • I solved it by adding load balancer security group to EB instance and then adding my IP to load balancer security group.