2022-08-24 20:13:39 +02:00
|
|
|
# My First VPC
|
2021-12-04 05:56:07 +01:00
|
|
|
|
2022-08-24 20:13:39 +02:00
|
|
|
## Objectives
|
2021-12-04 05:56:07 +01:00
|
|
|
|
|
|
|
1. Create a new VPC
|
2022-08-24 20:13:39 +02:00
|
|
|
1. It should have a CIDR that supports using at least 60,000 hosts
|
|
|
|
2. It should be named "exercise-vpc"
|
2021-12-04 05:56:07 +01:00
|
|
|
|
2022-08-24 20:13:39 +02:00
|
|
|
## Solution
|
2021-12-04 05:56:07 +01:00
|
|
|
|
2022-08-24 20:13:39 +02:00
|
|
|
### Console
|
2021-12-04 05:56:07 +01:00
|
|
|
|
|
|
|
1. Under "Virtual Private Cloud" click on "Your VPCs"
|
|
|
|
2. Click on "Create VPC"
|
2022-08-24 20:13:39 +02:00
|
|
|
3. Insert a name - "exercise-vpc"
|
2021-12-04 05:56:07 +01:00
|
|
|
4. Insert IPv4 CIDR block: 10.0.0.0/16
|
|
|
|
5. Keep "Tenancy" at Default
|
|
|
|
6. Click on "Create VPC"
|
2022-08-24 20:13:39 +02:00
|
|
|
|
|
|
|
### Terraform
|
|
|
|
|
|
|
|
Click [here](terraform/main.tf) to view the solution
|
|
|
|
|
|
|
|
### Pulumi - Python
|
|
|
|
|
|
|
|
Click [here](pulumi/__main__.py) to view the solution
|
|
|
|
|
|
|
|
### Verify Solution
|
|
|
|
|
|
|
|
To verify you've create the VPC, you can run: `aws ec2 describe-vpcs -filters Name=tag:Name,Values=exercise-vpc`
|