-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
100 lines (83 loc) · 2.62 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
# ------------------------------------------------------------------------------
# Variables
# ------------------------------------------------------------------------------
variable "name_prefix" {
description = "A prefix used for naming resources."
type = string
default = "cloudflared-tunnel"
}
variable "environment" {
description = "Environment tag, e.g prod."
type = string
}
variable "docker_image" {
description = "Full name of the Docker image to be used by ECS task."
type = string
default = "docker.io/shmileee/cloudflared-tunnel:latest"
}
variable "tunnel_url" {
description = "URL where cloudflared tunnel should point to."
type = string
}
variable "tunnel_hostname" {
description = "User friendly hostname of the tunnel, e.g. test.internal.example.com"
type = string
}
variable "s3_bucket_arn" {
description = "ARN for S3 bucket where Cloudflare certificate is stored."
type = string
default = null
}
variable "s3_cert_path" {
description = "Full path to where Cloudflare certificate is stored, e.g. s3://my-bucket/cert.pem"
type = string
default = null
}
variable "ecs_use_fargate" {
description = "Whether to use Fargate for the task definition."
default = true
type = bool
}
variable "tasks_desired_count" {
description = "The number of instances of a task definition."
default = 1
type = number
}
variable "assign_public_ip" {
description = "Whether this instance should be accessible from the public internet. Default is false."
default = true
type = bool
}
variable "manage_ecs_security_group" {
description = "Enable creation and management of the ECS security group and rules"
default = true
type = bool
}
variable "vpc_id" {
description = "VPC ID to be used by ECS."
type = string
}
variable "subnet_ids" {
description = "Subnet IDs for the ECS tasks."
type = list(string)
}
variable "container_definitions" {
description = "Container definitions provided as valid JSON document. Default uses shmileee/cloudflared-tunnel:latest"
default = ""
type = string
}
variable "logs_cloudwatch_group" {
description = "CloudWatch log group to create and use. Default: /ecs/{environment}/{name_prefix}"
default = ""
type = string
}
variable "ecr_repo_arns" {
description = "The ARNs of the ECR repos. By default, allows all repositories."
type = list(string)
default = ["*"]
}
variable "tags" {
description = "A map of tags (key-value pairs) passed to resources."
type = map(string)
default = {}
}