💥 Deploy aws project using vpc and auto scaling on production level in AWS !!!!!”

priyanka kumari
3 min readSep 16, 2023

--

Hey!!!linkdin family đź’« today #day9of #30daysofAws and we will deploy an amazing project for the beginners

“ 💥 Deploy aws project using vpc and auto scaling on production level in AWS !!!!!”

This project is demonstrates how to create a VPC that you can use for servers in a production environment. To improve resiliency, you deploy the servers in two Availability Zones, by using an Auto Scaling group and an Application Load Balancer. For additional security, you deploy the servers in private subnets. The servers receive requests through the load balancer. The servers can connect to the internet by using a NAT gateway. To improve resiliency, you deploy the NAT gateway in both Availability Zones.

Contents

Steps:

1. Open AWS console and login it
2. On the dashboard, choose Create VPC.

In this for resources to creat choose vpc and more ,configure subnet

a. For Number of Availability Zones, choose 2, so that you can launch instances in multiple Availability Zones to improve resiliency.

b. For Number of public subnets, choose 2.

c. For Number of private subnets, choose 2.

d. You can keep the default CIDR block for the public subnet, or alternatively you can expand Customize subnet CIDR blocks and enter a CIDR block.

i. For NAT gateways, choose 1 per AZ to improve resiliency.

ii. If your application communicates by using IPv6 addresses, for Egress only internet gateway, choose Yes.

iii. For VPC endpoints, if your instances must access an S3 bucket, keep the S3 Gateway default. Otherwise, instances in your private subnet can’t access Amazon S3. There is no cost for this option, so you can keep the default if you might use an S3 bucket in the future. If you choose None, you can always add a gateway VPC endpoint later on.

iv. For DNS options, clear Enable DNS hostnames

v. Choose Create VPC.

3. To launch instances by using an Auto Scaling group

5. Launch another instance in bastion host

5. Connect to terminal (using putty or mobileXtr)
 6. login to the instance

7.Access your ec2 server

8.Done

When you’re done with the run “terminate instance “ to avoid the charges.

Feel free to share
I hope this is useful for you?
âś…Reshare this with others so that it helps more people
âś…Tag your colleagues and friends who you think will need th

--

--