-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvariables.tf
115 lines (97 loc) · 2.36 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
variable "ami_id" {
default = null
type = string
description = "The AMI ID of the bastion host"
}
variable "name" {
description = "The name of the bastion host"
type = string
}
variable "ssh_keys" {
description = "SSH public keys to add to the image"
default = []
type = list(any)
}
variable "tags" {
default = {}
description = "A map of tags to assign to the resource"
type = map(any)
}
variable "vpc_id" {
description = "The VPC ID to create security group for bastion host"
type = string
}
variable "subnet_id" {
description = "The VPC subnet ID to launch in EC2 bastion host"
type = string
}
variable "security_group_ids" {
default = []
description = "A list of security group names to associate with."
type = list(any)
}
variable "ubuntu_version" {
default = "24.04"
description = "Ubuntu Server Version"
type = string
}
variable "userdata" {
default = ""
description = "User data to provide when launching the instance"
type = string
}
variable "volume_size" {
default = 20
description = "Size of the volume in gibibytes (GiB)"
type = number
}
variable "instance_type" {
default = "t3.micro"
description = "EC2 Instance Type of the bastion host"
type = string
}
variable "ingress_cidrs" {
description = "Configuration block for ingress rules"
}
variable "user_data" {
default = ""
description = "User data to provide when launching the instance"
type = string
}
variable "user_data_replace_on_change" {
default = false
description = "To recreate the instance when user_data is changed"
type = bool
}
variable "users" {
description = "Custom user accounts of the instance"
default = {
"retool" = {
ssh-keys = []
}
}
}
variable "efs_mounts" {
description = "EFS multiple mounts"
default = {}
#"fs-09f8c986f1367012a" = {
# mount_path = "/tmp/efs1"
#},
#"fs-0314bf3a3f8c0e652" = {
# mount_path = "/tmp/efs2"
#}
#}
}
variable "instance_profile" {
type = object({
role_name = string
assume_role_service = string
policy_arns = list(string)
})
default = null
# default = {
# role_name = "test_role1"
# assume_role_service = "ec2.amazonaws.com"
# policy_arns = ["testarn1", "testarn2"]
# }
}