-
Notifications
You must be signed in to change notification settings - Fork 11
/
mwaa.tf
44 lines (36 loc) · 897 Bytes
/
mwaa.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
# MWAA
resource "aws_mwaa_environment" "mwaa_environment" {
source_bucket_arn = aws_s3_bucket.s3_bucket.arn
dag_s3_path = "dags"
execution_role_arn = aws_iam_role.iam_role.arn
name = var.prefix
max_workers = var.mwaa_max_workers
webserver_access_mode = "PRIVATE_ONLY"
network_configuration {
security_group_ids = [aws_security_group.mwaa.id]
subnet_ids = aws_subnet.private_subnets.*.id
}
logging_configuration {
dag_processing_logs {
enabled = true
log_level = "INFO"
}
scheduler_logs {
enabled = true
log_level = "INFO"
}
task_logs {
enabled = true
log_level = "INFO"
}
webserver_logs {
enabled = true
log_level = "INFO"
}
worker_logs {
enabled = true
log_level = "INFO"
}
}
tags = local.tags
}