-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathvariables.tf
111 lines (92 loc) · 3.22 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
# Copyright 2022 Hardfin, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
variable "name" {
type = string
default = null
description = "The name of the subnet router deployment. If unspecified the VPC name will be used."
}
variable "vpc" {
type = string
description = "The name of the VPC where the subnet router ECS service will be launched"
}
variable "subnet_group" {
type = string
description = "The group (tag) of the VPC subnets where the subnet router ECS service will be launched"
}
variable "assign_public_ip" {
type = bool
default = false
description = <<-EOT
The 'assign_public_ip' flag for the ECS task network configuration.
The `assign_public_ip` is necessary to be able to pull from ECR when the
containers come up. Alternatively, AWS PrivateLink can be used or the ECS task
can be placed in a private subnet that routes traffic through a NAT gateway.
EOT
}
variable "security_group_ids" {
type = list(string)
description = "The security group IDs to associate with the subnet router ECS service and EFS mount targets"
}
variable "target_ecs_cluster" {
type = string
description = "The name of the target ECS cluster"
}
variable "tailscale_auth_key_secret" {
type = string
description = "The name of secret where the Tailscale auth key is stored"
}
variable "tailscale_docker_repository" {
type = string
description = "The name of ECR repository where the Docker image stored"
}
variable "tailscale_docker_tag" {
type = string
description = "The name of tag for the Docker image stored in ECR"
}
variable "enable_execute_command" {
type = bool
default = false
description = <<-EOT
Allows AWS ECS exec into the task containers.
The `enable_execute_command` field allows AWS ECS exec into the task
containers. See:
- https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-exec.html
- https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html
EOT
}
variable "additional_routes" {
type = list(string)
default = []
description = "A list of additional CIDR blocks to pass to Tailscale as routes to advertise"
}
variable "cpu_architecture" {
type = string
default = "X86_64"
description = "The CPU architecture to use for the container. Either X86_64 or ARM64."
}
variable "additional_flags" {
type = string
default = ""
description = "Additional flags to pass to the tailscale up command"
}
variable "cpu" {
type = number
default = 256
description = "The CPU value to assign to the container (vCPU)"
}
variable "memory" {
type = number
default = 512
description = "The memory value to assign to the container (MiB)"
}