-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
35 lines (35 loc) · 1.12 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
variable "cidr_block" {
type = string
description = "VPC CIDR block"
}
variable "region" {
type = string
description = "AWS region to deploy the resources."
}
variable "vpc_name" {
type = string
default = "IaC VPC"
description = "VPC Name"
}
variable "enable_dns_support" {
type = bool
default = false
description = "A boolean flag to enable/disable DNS support in the VPC."
}
variable "enable_dns_hostnames" {
type = bool
default = false
description = "A boolean flag to enable/disable DNS hostnames in the VPC"
}
variable "tags" {
type = map(string)
description = "VPC Tags"
}
variable "subnets" {
type = list(object({
name = string
new_bits = number
az = string
}))
description = "Subnet information necessary to create all the subnets. Please check [cidrsubnets](https://www.terraform.io/language/functions/cidrsubnets) for more info on `new_bits`. The `region` variable is used to associate the desired AZ. Usage : `join(\"\",[\"us-east-1\", \"a\"])`. Example: [values.hcl](https://github.com/SP-UT/vpc/blob/main/values.hcl#L15)"
}