-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
101 lines (87 loc) · 2.79 KB
/
Copy pathvariables.tf
File metadata and controls
101 lines (87 loc) · 2.79 KB
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
variable "allowed_web_domains" {
description = "List of allowed domains."
type = list(string)
default = [
".amazonaws.com",
".amazon.com",
]
}
variable "architectures" {
description = "Lambda function architecture."
type = list(string)
default = ["arm64"]
}
variable "detailed_monitoring" {
description = "Whether or not to enable detailed monitoring for the EC2 instance."
type = bool
default = false
}
variable "additional_egress_rules" {
description = "Additional egress rules to apply to the security group."
type = map(object({
name = optional(string)
cidr_ipv4 = optional(string)
cidr_ipv6 = optional(string)
description = optional(string)
from_port = optional(string)
ip_protocol = optional(string, "tcp")
prefix_list_id = optional(string)
referenced_security_group_id = optional(string)
tags = optional(map(string), {})
to_port = optional(string)
}))
default = {}
}
variable "additional_ingress_rules" {
description = "Additional ingress rules to apply to the security group."
type = map(object({
name = optional(string)
cidr_ipv4 = optional(string)
cidr_ipv6 = optional(string)
description = optional(string)
from_port = optional(string)
ip_protocol = optional(string, "tcp")
prefix_list_id = optional(string)
referenced_security_group_id = optional(string)
tags = optional(map(string), {})
to_port = optional(string)
}))
default = {}
}
variable "enable_eip" {
description = "Whether or not to enable a consistent elastic IP for the EC2 instances."
type = bool
default = false
}
variable "enable_spot_instance" {
description = "Whether or not to use spot instances for the ASG."
type = bool
default = false
}
variable "instance_type" {
description = "The instance type to use for the ASG."
type = string
default = "t4g.small"
}
variable "name" {
description = "The name to use for resources."
type = string
default = "nat"
}
variable "private_subnet_ids" {
description = "List of private subnet ID's in the VPC."
type = list(string)
}
variable "public_subnet_ids" {
description = "List of public subnet ID's to deploy the ASG to."
type = list(string)
}
variable "tags" {
description = "Tags to apply to the resources."
type = map(string)
default = {}
}
variable "vpc_id" {
description = "The ID of the VPC to deploy the NAT instance/squid proxy to."
type = string
}