-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
117 lines (96 loc) · 3.04 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
115
116
117
variable "namespace" {
description = "Specifies the namespace for the deployment."
default = "common-fate"
type = string
}
variable "stage" {
description = "Determines the deployment stage (e.g., 'dev', 'staging', 'prod')."
default = "prod"
type = string
}
variable "id" {
description = "The ID for this proxy e.g prod-us-west-2."
type = string
}
variable "app_url" {
description = "The app url (e.g., 'https://common-fate.mydomain.com')."
type = string
validation {
condition = can(regex("^https://", var.app_url))
error_message = "The app_url must start with 'https://'."
}
}
variable "vpc_id" {
description = "Specifies the ID of the VPC."
type = string
}
variable "subnet_ids" {
description = "Lists the subnet IDs for deployment."
type = list(string)
}
variable "release_tag" {
description = "Defines the tag for the Proxy service container."
type = string
default = "v1.1.1"
}
variable "ecs_cluster_id" {
description = "The ARN of the Amazon Elastic Container Service (ECS) cluster for deployment."
type = string
}
variable "ecs_cluster_name" {
description = "The name of Amazon Elastic Container Service (ECS) cluster for deployment."
type = string
}
variable "log_retention_in_days" {
description = "Specifies the cloudwatch log retention period."
default = 365
type = number
}
variable "ecs_task_cpu" {
description = "The amount of CPU to allocate for the ECS task. Specified in CPU units (1024 units = 1 vCPU)."
type = string
default = "256" # Example default, adjust as needed
}
variable "ecs_task_memory" {
description = "The amount of memory to allocate for the ECS task. Specified in MiB."
type = string
default = "512" # Example default, adjust as needed
}
variable "desired_task_count" {
description = "The desired number of instances of the task to run."
type = number
default = 1
}
variable "enable_verbose_logging" {
description = "Enables debug level verbose logging on ecs tasks"
type = bool
default = false
}
variable "proxy_service_client_id" {
description = "Specifies the client ID for the proxy service."
type = string
}
variable "proxy_service_client_secret" {
description = "Specifies the client secret for the proxy service."
type = string
sensitive = true
}
variable "auth_issuer" {
description = "Specifies the issuer for authentication."
type = string
}
variable "proxy_image_repository" {
type = string
description = "Docker image repository to use for the Provisioner image"
default = "public.ecr.aws/z2x0a3a1/common-fate-deployment/proxy"
}
variable "assume_role_external_id" {
type = string
nullable = true
description = "External ID to use when assuming cross-account AWS roles for auditing and provisioning."
default = null
}
variable "common_fate_aws_account_id" {
description = "The ID or the account where Common Fate is deployed"
type = string
}