How should I restrict load balanced Web traffic to my Elastic Beanstalk environments?

♀尐吖头ヾ 提交于 2019-11-29 02:35:59

Sounds like you want to launch your environment inside a VPC so the VPC controls access.

However, if you still just want to use security groups:

1, but assign it to the Beanstalk environment, not the ELB.

You can tell an Elastic Beanstalk Environment to use an already existing Security Group. EB will still create the default Security group, but it will ALSO use your created security group.

You can edit this in the console: Environment -> Configuration -> Instances. But make sure to add your security group to the comma separated list. Don't remove the one already there.

What you'd need to do is go to the EC2 Security Groups and create your security groups and access permissions.

Once you have setup those security groups head on over to your Elastic Beanstalk Environment and select Configuration and then Instances. You will see a field called EC2 Security Groups under the Server section; and the names of the security groups (comma separated) that you created previously.

Note: Leave the security group that has already been defined.
Note: The default security group allows all traffic from the ELB

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!