-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
37 lines (31 loc) · 865 Bytes
/
variables.tf
File metadata and controls
37 lines (31 loc) · 865 Bytes
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
36
37
variable "tags" {
description = "A map of tags to assign to all resources."
type = map(string)
}
variable "name" {
description = "The name of the VPC."
type = string
}
variable "cidr_block" {
description = "The IPv4 CIDR block of the VPC. Must be /16."
type = string
validation {
condition = endswith(var.cidr_block, "/16")
error_message = "var.cidr_block must be a /16 network."
}
}
variable "create_flow_log" {
type = bool
description = "Whether to create VPC flow logs or not."
default = false
}
variable "private_subnet_tags" {
description = "A map of tags to assign to all private subnets."
type = map(string)
default = {}
}
variable "public_subnet_tags" {
description = "A map of tags to assign to all public subnets."
type = map(string)
default = {}
}