This repository has been archived by the owner on Dec 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
variables.tf
141 lines (116 loc) · 3.77 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
/**
* Copyright (C) 2020 Expedia, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
*/
variable "instance_name" {
description = "Shunting Yard instance name to identify resources in multi-instance deployments."
type = "string"
default = ""
}
variable "aws_region" {
description = "AWS region to use for resources."
type = "string"
}
variable "vpc_id" {
description = "VPC ID."
type = "string"
}
variable "subnets" {
description = "ECS container subnets."
type = "list"
}
# Tags
variable "shuntingyard_tags" {
description = "A map of tags to apply to resources."
type = "map"
}
variable "memory" {
description = <<EOF
The amount of memory (in MiB) used to allocate for the Shunting Yard container.
Valid values: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-cpu-memory-error.html
EOF
type = "string"
default = "4096"
}
variable "cpu" {
description = <<EOF
The number of CPU units to reserve for the Shunting Yard container.
Valid values can be 256, 512, 1024, 2048 and 4096.
Reference: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-cpu-memory-error.html
EOF
type = "string"
default = "1024"
}
variable "docker_image" {
description = "Full path of Shunting Yard Docker image."
type = "string"
}
variable "docker_version" {
description = "Shunting Yard Docker image version."
type = "string"
}
variable "ct_common_config_yaml" {
description = "Common Circus Train configuration to be passed to internal Circus Train instance. It can be used, for example to configure Graphite for Circus Train. Refer to [Circus Train README](https://github.com/HotelsDotCom/circus-train/blob/master/README.md) for an exhaustive list of options supported by Circus Train."
type = "string"
}
variable "ct_log4j_xml" {
description = "Log4j XML file to be passed to internal Circus Train instance to configure logging."
type = "string"
}
variable "allowed_s3_buckets" {
description = "List of S3 Buckets to which Shunting Yard will have read-write access."
type = "list"
}
variable "source_metastore_uri" {
description = "Source Metastore URI for Shunting Yard."
type = "string"
}
variable "target_metastore_uri" {
description = "Target Metastore URI for Shunting Yard."
type = "string"
}
variable "metastore_events_sns_topic" {
description = "SNS Topic for Hive Metastore events."
type = "string"
}
variable "shuntingyard_sqs_queue_wait_timeout" {
description = "Wait timeout for connecting to the Shunting Yard SQS queue (in seconds)"
type = "string"
default = 15
}
variable "shuntingyard_sqs_queue_stale_messages_timeout" {
description = "Shunting Yard SQS Queue Cloudwatch Alert timeout for messages older than this number of seconds."
type = "string"
default = 300
}
variable "selected_tables" {
description = <<EOF
Tables selected for Shunting Yard Replication.
Supported Format: [ "database_1.table_1", "database_2.table_2" ]
Wildcards are not supported, i.e. you need to specify each table explicitly.
EOF
type = "list"
default = []
}
variable "orphaned_data_strategy" {
description = <<EOF
Orphaned data strategy to use for stale data during replication. Supported strategies: "NONE", "HOUSEKEEPING" (default).
EOF
type = "string"
default = "HOUSEKEEPING"
}
variable "docker_registry_auth_secret_name" {
description = "Docker Registry authentication SecretManager secret name."
type = "string"
default = ""
}
variable "exclude_event_list" {
description = <<EOF
Filter on eventtype (optional)
Supported Format: [ "DROP_PARTITION" ]
Wildcards are not supported, i.e. you need to specify each eventtype explicitly.
EOF
type = "list"
default = []
}