Create two public subnets and two private subnets in two different availability zones(AZ) ( one public and one private subnet in each AZ).Create an instance of webserver (like apache ) in each AZ and an instance of db server in any AZ. Attach web servers to ELB and make sure to support cross zone availability.
Step 1: Create a VPC (if not already created) Go to the Amazon VPC console. Click on "Create VPC." Enter the details such as CIDR block and VPC name. Click on "Create VPC." Step 2: Create the subnets In the VPC console, select "Subnets." Click on "Create subnet." Enter the subnet details such as the VPC ID, availability zone, CIDR block, and subnet name. Repeat the above steps to create the remaining subnets. Step 3: Create the security groups In the VPC console, select "Security Groups." Click on "Create security group." Enter the details such as the security group name, description, and VPC ID. Add inbound and outbound rules as required. Step 4: Launch the instances In the EC2 console, click on "Launch instance." Select the AMI and instance type. In the "Configure Instance Details" section, select the appropriate VPC, subnet, and security group. Configure the rest of the instance settings as required. R...