mirror of
https://github.com/bregman-arie/devops-exercises.git
synced 2026-02-04 23:59:11 +00:00
* Add exercise and solution for creating a custom VPC and subnets with Terraform * Add exercise and solution for creating a custom VPC and subnets with Terraform
726 B
726 B
Creating Custom VPC and Subnets with Terraform
Requirements
- An existing AWS account with permissions to create VPCs and subnets.
- Terraform installed on your local machine.
- AWS CLI configured with your credentials.
Objectives
-
Create a custom VPC with a specified CIDR block. For example, you can use
10.0.0.0/16. -
Create two subnets within the VPC, each with a different CIDR block. For example, you can use
10.0.0.0/20for the first subnet and10.0.16.0/20for the second subnet.Both subnets should be in different availability zones to ensure high availability.
-
Ensure that the VPC and subnets are tracked by Terraform.