Application Load Balancer

 First we need to create VPC


After adding name to VPC and IPV4 CIDR, click create VPC


VPC is now created. 

Now we are going to create 4 subnets under this VPC

Under Subnet --> Create Subnet

Choose the VPC which we have created




2 Public Subnet and 2 Private Subnet is created in different locations

Click create Subnet



Subnet has been created

After this, internet gateway should be created

Under Internet Gateway --> Create Internet Gateway





Specify the name of internet gateway and click create internet gateway

Internet Gateway is created. After this Click Actions --> Attach to VPC

Select the VPC which we have created and click attach internet gateway

Next Under NAT Gateway --> Create NAT Gateway




Enter name of gateway, Select subnet as PubSub1 --> Click Allocate Elastic IP --> Create NAT Gateway

Under route table, Click the route table id which we have created now -- > Click Edit routes




Click save changes. Under subnet association --> Click Edit Subnet Association

Select the two public subnet --> Save association



Under Route table --> Create route table



Create route table. Click Edit route


Click Save changes

Under Subnet Association --> Edit Subnet Association 

Select the private subnet --> Click save association


Under Services --> EC2 --> Instances --> Launch instances




Click Launch instance

Now create instance 2

The only difference is we need to create it with private subnet 2

Click Launch instance

Under target group --> create target group



Under Load Balancer --> Create Load Balancer --> Application Load Balancer 






Click create security group

After this click create load balancer

Under Security group --> Click VM Security group (InstanceSG) --> Actions --> Edit inbound rules 

 Click Save rules



Now our Load Balancer is healthy

Under Load Balancer, copy Dns Name and copy it, paste the link


Comments

Popular posts from this blog

Create and carry out read and write operation in AWS Dynamo DB

PHYSICAL TO VIRTUAL MIGRATION

WORKSHEET-1