-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
95 lines (80 loc) · 2.1 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
variable "aws_region" {
type = string
}
variable "environment" {
type = string
description = "Environment name"
}
variable "project" {
type = string
description = "Account/Project Name"
}
variable "log_retention" {
type = number
description = "How long should logs be retained"
default = 7
}
variable "public_ssh_keys" {
type = string
description = "rsa.pub strings"
}
variable "vpc_id" {
type = string
description = "vpc id"
}
variable "ecs_cluster_arn" {
type = string
description = "ECS Cluster arn"
}
variable "security_groups" {
type = list(string)
description = "Security groups"
}
variable "public_subnet_ids" {
type = list(string)
description = "Public subnets ids"
}
variable "whitelist_ips" {
type = list(object({ description = string, cidr = string }))
description = "List of ip addresses that will be allowed to connect on port 22"
}
variable "tags" {
type = map(string)
description = "Default tags to apply on all created resources"
default = {}
}
variable "web_domain" {
default = ""
type = string
description = "domain under which bastion will be available"
}
variable "route53_zone_id" {
default = ""
type = string
description = "Route 53 Zone id for bastion entry"
}
variable "container_image" {
default = "miquidocompany/aws-ecs-bastion:3546346774-7c1491b5"
type = string
description = "docker image of bastion"
}
variable "auto_deploy_new_task_versions" {
default = false
type = bool
description = "Set to true if there should be auto deploy of new task versions"
}
variable "ignore_changes_desired_count" {
default = true
type = bool
description = "If yes than terraform will not try to update current desired count of the task"
}
variable "use_spot" {
default = true
type = bool
description = "Set if task should run on Fargate SPOT"
}
variable "restart_on_ssh_keys_change" {
default = true
type = bool
description = "Restart bastion ecs task when ssh keys are changed"
}