Unable to properly configure EC2 instance security group rules to give access to Elastic Beanstalk for setting and updating the application environment.

0

I'm actually hosting a Node Js back end server, with a load balancer and an EC2 instance setup by using the Elastic Beanstalk service.

I wanna configure the EC2 instance security group rules to give the inbound traffic access to only the load balancer and the elastic beanstalk service, with no direct public internet traffic.

Well, I referenced the security group of the load balancer as a source for the load balancer to access EC2, but for the Elastic Beanstalk service, I don't know what to reference at the source input. I went through the documentation and found something known as AWS managed prefix lists, but I couldn't find any prefix list for the Elastic Beanstalk service.

Please help me with the above problem, I just started recently with AWS.

raghav
已提问 1 个月前188 查看次数
1 回答
2

Every EC2 instance of your Beanstalk environment has a security group https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.managing.ec2.html#using-features.managing.ec2.securitygroups

So you can reference this security group as a traffic source in your NodeJS server security group. Logic is the same as you did for reference Load Balancer Security Group

profile picture
专家
已回答 1 个月前
profile picture
专家
Artem
已审核 25 天前
  • The default security group created by the Elastic beanstalk service adds inbound rules as HTTP, HTTPS, and SSH from '0.0.0.0/0'(entire public internet addresses). But I want only a specific IP addresses to get SSH access of the instance. As the Elastic beanstalk setups the ec2 instance, and through SSH client it(the EB service) gets the instance access to download all the source code and everything right. I'm asking that what's the IP address or the prefix list of the Elastic Beanstalk service, by adding it as inbound rule we're giving instance access specifically to the EB Service to SSH.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则