- 最新
- 投票最多
- 评论最多
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
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.
相关内容
- AWS 官方已更新 2 年前
Please accept the answer if it was useful for you