Skip to content

Commit

Permalink
Create variables.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
anujdevopslearn authored Apr 25, 2024
1 parent ee3cf1a commit 3631af5
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions vpc_terraform/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
variable "vpc_parameters" {
description = "VPC parameters"
type = map(object({
cidr_block = string
enable_dns_support = optional(bool, true)
enable_dns_hostnames = optional(bool, true)
tags = optional(map(string), {})
}))
default = {}
}


variable "subnet_parameters" {
description = "Subnet parameters"
type = map(object({
cidr_block = string
vpc_name = string
tags = optional(map(string), {})
}))
default = {}
}

variable "igw_parameters" {
description = "IGW parameters"
type = map(object({
vpc_name = string
tags = optional(map(string), {})
}))
default = {}
}


variable "rt_parameters" {
description = "RT parameters"
type = map(object({
vpc_name = string
tags = optional(map(string), {})
routes = optional(list(object({
cidr_block = string
use_igw = optional(bool, true)
gateway_id = string
})), [])
}))
default = {}
}
variable "rt_association_parameters" {
description = "RT association parameters"
type = map(object({
subnet_name = string
rt_name = string
}))
default = {}
}

0 comments on commit 3631af5

Please sign in to comment.