Skip to content

Commit e391da3

Browse files
add airflow alert mapping variable (#2152)
1 parent c70d81f commit e391da3

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

terraform/etl/60-airflow-variables-and-connnections.tf

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
### Airflow Alerts
2+
3+
resource "aws_secretsmanager_secret" "google_chat_webhook_mapping" {
4+
name = "airflow/variables/google_chat_webhook_mapping"
5+
description = "Mapping of department DAG tags to Google Spaces webhooks for failure alerts."
6+
tags = module.tags.values
7+
}
8+
9+
resource "aws_secretsmanager_secret_version" "google_chat_webhook_mapping" {
10+
secret_id = aws_secretsmanager_secret.google_chat_webhook_mapping.id
11+
secret_string = jsonencode({
12+
lower_department_name = "UPDATE_WITH_WEBHOOK_IN_CONSOLE"
13+
})
14+
15+
16+
lifecycle {
17+
ignore_changes = [secret_string]
18+
}
19+
}
20+
21+
22+
123
### Alloy
224

325
resource "aws_secretsmanager_secret" "alloy_api_key" {

0 commit comments

Comments
 (0)