Untitled
Anonymous
plain_text
03/04/2025 2:59 AM
964 B
17
Indexable
# Task: Deploy a simple VPC on AWS
# 1. Define the variables: vpc_name, vpc_cidr, private_subnet_cidrs, public_subnet_cidrs
# 2. Create a VPC
# 3. Create the corresponding public subnets and private subnets
# 4. Setup an internet gateway and associate to the public subnets
# 5. Output the internet_gateway ID
# 1. Define Variables
variable "vpc_name" {
description = "Name of the VPC"
type = string
}
variable "vpc_cidr" {
description = "CIDR for the VPC"
type = string
}
variable "private_subnet_cidrs" {
description = "List of Private Subnets CIDRs"
type = list(string)
}
variable "public_subnet_cidrs" {
description = "List of Public Subnets CIDRs"
type = list(string)
}Editor is loading...
Leave a Comment