Рет қаралды 4,253
This video tutorial explains how we can create EC2 instances in a Private environment and load balancers in a Public environment using a few clicks using the AWS Elastic Beanstalk service.
AWS Elastic Beanstalk is a PaaS (Platform as a Service) that provides the platform in the AWS to launch our applications of different languages to be created in one go without the need to configure or create them manually.
You can simply upload your code and Elastic Beanstalk automatically handles the deployment, from capacity provisioning, load balancing, auto-scaling to application health monitoring.
aws.amazon.com/elasticbeanstalk/
The following the details of the setup we need to create for this Demo:
A) VPC
1) We will create a VPC (10.0.0.0/16)
2) We will create a 2 public subnet (10.0.0.0/24 and 10.0.1.0/24) and 2 private subnet (10.0.2.0/24 and 10.0.3.0/24)
3) We will create 1 Internet Gateway and attach it to the Public RT
4) We will create 1 NAT Gateway and attach it to Private RT
5) We will create 2 Route Table (public RT and Private RT)
B) ElasticBeanstalk
1) Create 2 EC2 instance ( 1 as a public instance and 1 as a private instance)
2) We can modify the "Capacity" option to choose the required min and max instances and the autoscaling metrics.
3) We need to choose the appropriate Subnets in the "Network" option accordingly.
The overall gist of this demo is to create a Java-based application with EC2 instances in the Private Subnet and the
Loadbalancer in the Public subnet with Autoscaling using the AWS ElasticBeanstalk service.