-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathvariables.tf
61 lines (52 loc) · 1.55 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
variable "name" {
type = string
description = "The name to be interpolated, defaults to bastion-ssm-iam"
default = "bastion-ssm-iam"
}
variable "instance_type" {
type = string
description = "The instance type of the bastion"
default = "t3.nano"
}
variable "image_id" {
type = string
description = "AMI to be used. If blank, latest amazon linux 2 will be used"
default = ""
}
variable "log_retention" {
type = number
description = "The amount of days the logs need to be kept"
default = 30
}
variable "vpc_id" {
type = string
description = "The VPC-ID"
}
variable "subnet_ids" {
type = list(string)
description = "The subnets where the Bastion can reside in, they can be private"
}
variable "create_new_ssm_document" {
type = bool
description = "This module can create a new SSM document for the SSH Terminal"
default = false
}
variable "create_security_group" {
type = bool
description = "This module can create a security group for the bastion instance by default"
default = true
}
variable "security_group_ids" {
type = list(string)
description = "The security group ids which can be given to the bastion instance, defaults to empty"
default = []
}
variable "tags" {
type = list(object({
key = string
value = string
propagate_at_launch = optional(bool, true)
}))
description = "Tags to be added to the launch configuration for the bastion host, additionally to name tag"
default = []
}