Return only bucket name of composer, not full url to dags folder

This commit is contained in:
Wiktor Niesiobędzki 2023-07-10 08:01:33 +00:00 committed by Wiktor Niesiobędzki
parent 551dc581e8
commit 0b224a7f55
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ output "composer" {
description = "Composer variables."
value = {
air_flow_uri = try(google_composer_environment.processing-cmp-0[0].config.0.airflow_uri, null)
dag_bucket = try(google_composer_environment.processing-cmp-0[0].config[0].dag_gcs_prefix, null)
dag_bucket = try(regex("^gs://([^/]*)/dags$", google_composer_environment.processing-cmp-0[0].config[0].dag_gcs_prefix)[0], null)
}
}