-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
86 lines (72 loc) · 1.98 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
variable "name" {
type = string
description = "Name of bastion instance and a prefix for it's dependencies"
}
variable "create" {
type = bool
default = true
description = "Set to false if you don't want to create any resources"
}
variable "vpc_id" {
type = string
description = "Identifier of VPC where the bastion instance is placed."
}
variable "subnet_id" {
type = string
description = "Identifier of Public Subnet Id where the bastion instance is placed."
}
variable "egress_security_groups" {
type = list(string)
description = "Egress"
default = []
}
variable "instance_type" {
type = string
description = "Type of EC2 instance."
default = "t3.nano"
}
variable "ami_id" {
type = string
description = "Amazon Machine Image identifier. You can use data.aws_ami to find the right image."
default = null
}
variable "allowed_cidr_blocks" {
type = list(string)
default = []
description = "Determines what CIDRs (i.e. 18.202.145.21/32) can connect to the bastion instance."
}
variable "volume_size" {
type = number
description = "Root volume size in GB."
default = 8
}
variable "ssh_key_name" {
type = string
description = "Name of SSH key present in AWS EC2 keys list."
default = null
}
variable "extra_tags" {
type = map(string)
description = "AWS Tags that will be added to running bastion instance."
default = {}
}
variable "detailed_monitoring" {
type = bool
description = "Whether to enable EC2 instance monitoring."
default = false
}
variable "disable_api_termination" {
type = bool
description = "Whether to enable EC2 Instance Termination Protection"
default = false
}
variable "additional_user_data" {
type = string
description = "Scripts to be ran when instance boots up."
default = ""
}
variable "eip_id" {
type = string
description = "Elastic IP"
default = null
}