forked from idealo/terraform-aws-mwaa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
106 lines (96 loc) · 2.6 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
# general information
variable "region" {
type = string
description = "AWS Region where the environment and its resources will be created"
}
variable "account_id" {
type = string
description = "Account ID of the account in which MWAA will be started"
}
variable "environment_name" {
type = string
description = "Name of the MWAA environment"
}
variable "airflow_version" {
description = "Airflow version to be used"
type = string
default = "2.0.2"
}
# s3 configuration
variable "source_bucket_arn" {
type = string
description = "ARN of the bucket in which DAGs, Plugin and Requirements are put"
}
variable "dag_s3_path" {
description = "Relative path of the dags folder within the source bucket"
type = string
default = "/dags"
}
variable "plugins_s3_path" {
type = string
description = "relative path of the plugins.zip within the source bucket"
default = null
}
variable "plugins_s3_object_version" {
default = null
}
variable "requirements_s3_path" {
type = string
description = "relative path of the requirements.txt (incl. filename) within the source bucket"
default = null
}
variable "requirements_s3_object_version" {
default = null
}
# airflow.cfg values
variable "airflow_configuration_options" {
description = "additional configuration to overwrite airflows standard config"
type = map(string)
default = {}
}
# networking
variable "vpc_id" {
description = "VPC id of the VPC in which the environments resources are created"
}
variable "internet_gateway_id" {
description = "ID of the internet gateway to the VPC"
}
variable "public_subnet_cidrs" {
description = "CIDR blocks for the public subnets MWAA uses. Must be at least 2"
type = list(string)
validation {
condition = length(var.public_subnet_cidrs) >= 2
error_message = "You must enter at least 2 CIDR blocks for public subnets."
}
}
variable "private_subnet_cidrs" {
description = "CIDR blocks for the private subnets MWAA uses. Must be at least 2"
type = list(string)
validation {
condition = length(var.private_subnet_cidrs) >= 2
error_message = "You must enter at least 2 CIDR blocks for private subnets."
}
}
variable "additional_execution_role_policy_document_json" {
description = "Additional permissions to attach to the base mwaa execution role"
type = string
default = "{}"
}
variable "max_workers" {
default = "10"
}
variable "min_workers" {
default = "1"
}
variable "environment_class" {
default = "mw1.small"
}
variable "webserver_access_mode" {
description = "Default: PRIVATE_ONLY"
type = string
default = null
}
variable "tags" {
type = map(string)
default = {}
}