Untitled

 avatar
unknown
plain_text
23 days ago
722 B
3
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