Skip to content

Commit 516bbbb

Browse files
authored
DL-148: Created a secret to store the DataHub configuration for use in the Airflow DAG (#2589)
1 parent 984c20e commit 516bbbb

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,20 @@ resource "aws_secretsmanager_secret_version" "mtfh_secrets" {
9292
ignore_changes = [secret_string]
9393
}
9494
}
95+
96+
resource "aws_secretsmanager_secret" "datahub_config" {
97+
name = "airflow/variables/datahub_config"
98+
description = "Configuration for DataHub integration. Includes DataHub cluster_name, task_defination, gms_url, and network."
99+
tags = module.tags.values
100+
}
101+
102+
resource "aws_secretsmanager_secret_version" "datahub_config" {
103+
secret_id = aws_secretsmanager_secret.datahub_config.id
104+
secret_string = jsonencode({
105+
value = "UPDATE_IN_CONSOLE"
106+
})
107+
108+
lifecycle {
109+
ignore_changes = [secret_string]
110+
}
111+
}

0 commit comments

Comments
 (0)