-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
120 lines (98 loc) · 3.19 KB
/
variables.tf
File metadata and controls
120 lines (98 loc) · 3.19 KB
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
118
119
120
variable "resource_prefix" {
description = "The prefix to apply to AWS resource names"
}
variable "warpstream_agent_docker_image" {
description = "The docker image for the warpstream agent"
type = string
default = "public.ecr.aws/warpstream-labs/warpstream_agent"
}
variable "kafka_port" {
description = "The port that warpstream listens on for Kafka connections"
type = number
default = 9092
}
variable "warpstream_agent_version" {
description = "The version of the warpstream agent to deploy"
type = string
default = "v768"
}
variable "warpstream_virtual_cluster_id" {
description = "The warpstream virtual cluster ID"
type = string
}
variable "warpstream_agent_key_secret_manager_arn" {
description = "The ARN of the secret manager secret version for the warpstream agent key"
type = string
}
variable "bucket_names" {
description = "A list of S3 bucket names that the WarpStream agents will use"
type = list(string)
validation {
condition = length(var.bucket_names) != 0
error_message = "Must set at least one bucket name in 'bucket_names'"
}
}
variable "compaction_bucket_name" {
description = "The name of the compaction bucket for low latency clusters"
type = string
default = ""
}
variable "ecs_service_min_capacity" {
description = "The minimum number of warpstream agent replicas to autoscale down to"
default = 3
}
variable "ecs_service_max_capacity" {
description = "The maximum number of warpstream agent replicas to autoscale up to"
default = 30
}
variable "control_plane_region" {
description = "The region of the warpstream control plane"
}
variable "ec2_instance_type" {
description = "The instance type for ec2 ecs instances"
}
variable "ec2_vpc_zone_identifier" {
description = "List of subnet IDs to launch ec2 ecs instances in."
type = list(string)
}
variable "ec2_instance_security_group_ids" {
description = "Security group IDs for ec2 ecs instances"
type = list(string)
}
variable "ecs_service_vpc_id" {
description = "The VPC ID that the ECS service should live on"
}
variable "ecs_subnet_ids" {
description = "Subnets associated with the warpstream ecs service"
type = list(string)
}
variable "disable_default_warpstream_agent_egress" {
description = "Disable the default egress rule allowing the WarpStream Agent to egress to 0.0.0.0/0"
type = bool
default = false
}
variable "ecs_service_additional_security_group_ids" {
description = "Security group IDs for ecs service"
type = list(string)
}
variable "ecs_service_additional_environment_variables" {
description = "Additional environment variables to expose on the WarpStream ECS service"
type = list(object({
name = string
value = string
}))
default = []
}
variable "ecs_service_additional_iam_policies" {
description = "Additional IAM policies to assign to the task ECS role"
type = list(object({
name = string
policy_json = string
}))
default = []
}
variable "ecs_log_group_retention_days" {
description = "The number of days to retain warpstream logs in the log group"
type = number
default = 7
}