Tuesday, April 11, 2023

Create a VPC in AWS with two instances of Centos 9

  1. Log in to your AWS Console.
  2. Navigate to the VPC Dashboard by clicking on the "Services" menu at the top of the page and selecting "VPC."
  3. Click on the "Create VPC" button.
  4. Enter a name for your VPC and specify the CIDR block that you want to use. For example, you can use "10.0.0.0/16".
  5. Click on "Create".
  6. Now, navigate to the "Subnets" section of the VPC dashboard.
  7. Click on the "Create subnet" button.
  8. Enter a name for your subnet, select the VPC you just created, and choose a CIDR block for your subnet. For example, you can use "10.0.1.0/24".
  9. Repeat steps 7 and 8 to create a second subnet with a different CIDR block. For example, you can use "10.0.2.0/24".
  10. Now, navigate to the "Security Groups" section of the VPC dashboard.
  11. Click on the "Create Security Group" button.
  12. Enter a name for your security group, select your VPC, and configure the inbound rules to allow SSH traffic.
  13. Repeat step 11 and 12 to create a second security group for the second instance.
  14. Now, navigate to the "EC2" section of the AWS console.
  15. Click on the "Launch Instance" button.
  16. Select "CentOS 9" as your operating system and choose an instance type.
  17. Choose the first subnet you created in step 8.
  18. Select the first security group you created in step 12.
  19. Click on "Launch Instance".
  20. Repeat steps 15-19 to launch a second instance in the second subnet with the second security group.

Created from Chat GPT. 

.

No comments:

Post a Comment