-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
79 lines (67 loc) · 1.62 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
variable "vpc_id" {
type = string
description = "VPC ID"
}
variable "nat_gateway_ids" {
default = []
description = "List identifier of a VPC NAT gateway"
}
variable "instance_ids" {
default = []
description = "List identifier of EC2 instances"
}
variable "gateway_ids" {
default = []
description = "Internet Gateway IDs that is used as default routes when creating public subnets"
}
variable "subnet_name" {
type = string
default = "dynamic"
description = "Subnets name"
}
variable "subnet_cidrs" {
type = string
description = "The CIDR block of the subnets"
}
variable "azs" {
type = string
default = "ap-northeast-1a,ap-northeast-1c"
description = "Availability Zones"
}
variable "map_public_ip_on_launch" {
type = bool
default = "false"
description = "Specify true to indicate that instances launched into the subnet should be assigned a public IP address."
}
variable "network_acl_egress" {
description = "Egress network ACL rules"
type = list(map(string))
default = [
{
rule_no = 100
action = "allow"
cidr_block = "0.0.0.0/0"
from_port = 0
to_port = 0
protocol = "-1"
},
]
}
variable "network_acl_ingress" {
description = "Egress network ACL rules"
type = list(map(string))
default = [
{
rule_no = 100
action = "allow"
cidr_block = "0.0.0.0/0"
from_port = 0
to_port = 0
protocol = "-1"
},
]
}
variable "subnet_tags" {
default = {}
description = "A map of tags to assign to the resource"
}