-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
156 lines (131 loc) · 4.32 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
variable "name" {
type = string
default = ""
description = "Name to be used on all the resources as identifier"
}
variable "tags" {
type = map
default = {}
description = "A mapping of tags to assign to the networking resources"
}
variable "vpc_cidr" {
type = string
description = "The CIDR block for the VPC"
}
variable "vpc_enable_dns_support" {
type = bool
default = true
description = "A boolean flag to enable/disable DNS support in the VPC"
}
variable "vpc_enable_dns_hostnames" {
type = bool
default = false
description = "A boolean flag to enable/disable DNS hostnames in the VPC"
}
variable "vpc_assign_generated_ipv6_cidr_block" {
type = bool
default = true
description = "Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IP addresses, or the size of the CIDR block"
}
variable "vpc_secondary_cidr_blocks" {
type = list(string)
default = []
description = "List of secondary CIDR blocks to associate with the VPC to extend the IP Address pool"
}
variable "public_subnets" {
type = list(string)
default = []
description = "A list of public subnets inside the VPC"
}
variable "private_subnets" {
type = list(string)
default = []
description = "A list of private subnets inside the VPC"
}
variable "one_nat_gateway_per_az" {
type = bool
default = false
description = "Should be true if you want only one NAT Gateway per availability zone. Requires `var.azs` to be set, and the number of `public_subnets` created to be greater than or equal to the number of availability zones specified in `var.azs`"
}
variable "create_database_subnet_group" {
type = bool
default = true
description = "Controls if database subnet group should be created"
}
variable "create_elasticache_subnet_group" {
type = bool
default = true
description = "Controls if elasticache subnet group should be created"
}
variable "azs" {
type = list(string)
default = []
description = "A list of availability zones in the region"
}
variable "enable_public_nat_gateway" {
type = bool
default = false
description = "Should be true if you want to provision NAT Gateways for each of your public networks"
}
variable "enable_private_nat_gateway" {
type = bool
default = false
description = "Should be true if you want to provision NAT Gateways for each of your private networks"
}
variable "single_private_nat_gateway" {
type = bool
description = "Should be true if you want to provision a single shared NAT Gateway across all of your private networks"
default = false
}
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 "bastion_instance_type" {
default = "t2.micro"
description = "The type of the instance"
}
variable "autoscaling_min_size" {
type = number
default = 1
description = "The minimum size of the auto scale group"
}
variable "autoscaling_max_size" {
type = number
default = 1
description = "The maximum size of the auto scale group"
}
variable "key_pair_name" {
description = "The name of the key pair to attach to instances"
}
variable "autoscaling_desired_capacity" {
type = number
default = 1
description = "The number of Amazon EC2 instances that should be running in the group"
}
variable "account_id" {
type = string
default = "651854267583"
description = "AWS Account ID to grab Hardened AMI from"
}
variable "base64_webmaster_private_key" {
type = string
description = "The webmaster private key in base64 format"
}
variable "ansible_files" {
type = list(string)
default = [
"ansible/playbook.yaml",
"ansible/requirements.yaml",
"ansible/common/tasks/main.yaml",
"ansible/papertrail/tasks/main.yaml",
"ansible/papertrail/templates/log_files.yml.j2",
"ansible/papertrail/files/remote_syslog.init.d"
]
}
variable "ansible_s3_bucket" {
type = string
default = "infrastructure-ansible-20190801093902877800000001"
description = "Name of the S3 bucket that will store ansible playbooks"
}