- Más nuevo
- Más votos
- Más comentarios
Hello Bansheebomb! Welcome to AWS services. It looks like you are trying to figure out whether or not it is required for your Elastic Beanstalk environment to have a static IP to allow outbound and inbound traffic from your instances. In order to route external traffic, your environment requires a public IP. This IP can either be a public IP assigned to your EC2 instances if placed in a public subnet, or an Elastic IP assigned to a NAT Gateway to route traffic from your instances in a private subnet. In order to have your instances communicate privately with the load balancer, you will need an internet gateway and a NAT gateway. The public subnet needs to have a default route to the internet gateway, which you can accomplish by editing the routing tables. Then, you will need to create a NAT gateway in the same public subnet and associate an elastic IP to it. Next, add a routing entry in your private subnet to direct traffic to the NAT gateway. Finally, you will need to associate your load balancer with the private subnets. To do this, enter your Beanstalk configuration presets, and navigate to load balancer settings. Ensure visibility is set to public and then edit the subnet tables. Delete any public subnets and add in the private subnets associated with the NAT gateway you created earlier. Your instances will now communicate privately with the load balancer and all traffic will go through the elastic IP. For more information, please view this documentation.
Setting up a NAT Gateway in a private subnet: https://aws.amazon.com/premiumsupport/knowledge-center/nat-gateway-vpc-private-subnet/
Configure and attach an Internet Gateway (IGW) for use with Elastic Load Balancing: https://aws.amazon.com/premiumsupport/knowledge-center/attach-igw-elb/
How do I assign a static source IP address for all instances in a load-balanced Elastic Beanstalk environment? https://aws.amazon.com/premiumsupport/knowledge-center/elastic-beanstalk-static-IP-address/
Contenido relevante
- ¿Cómo puedo solucionar una advertencia de estado amarillo o rojo en mi entorno de Elastic Beanstalk?OFICIAL DE AWSActualizada hace un año
- ¿Cómo puedo transferir variables de mi entorno de Elastic Beanstalk a instancias de Linux y Windows?OFICIAL DE AWSActualizada hace 2 años
- OFICIAL DE AWSActualizada hace 9 meses