- Log in to your AWS Console.
- Navigate to the VPC Dashboard by clicking on the "Services" menu at the top of the page and selecting "VPC."
- Click on the "Create VPC" button.
- 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".
- Click on "Create".
- Now, navigate to the "Subnets" section of the VPC dashboard.
- Click on the "Create subnet" button.
- 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".
- 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".
- Now, navigate to the "Security Groups" section of the VPC dashboard.
- Click on the "Create Security Group" button.
- Enter a name for your security group, select your VPC, and configure the inbound rules to allow SSH traffic.
- Repeat step 11 and 12 to create a second security group for the second instance.
- Now, navigate to the "EC2" section of the AWS console.
- Click on the "Launch Instance" button.
- Select "CentOS 9" as your operating system and choose an instance type.
- Choose the first subnet you created in step 8.
- Select the first security group you created in step 12.
- Click on "Launch Instance".
- 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