Skip to content

Commit 56c360f

Browse files
authored
Merge pull request #2007 from LBHackney-IT/LBHSBALLEY-patch-5
Update 60-airflow-etl-used-crawlers.tf
2 parents 500829e + 2683e9b commit 56c360f

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

terraform/etl/60-airflow-etl-used-crawlers.tf

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,25 @@ resource "aws_glue_crawler" "streetscene_street_systems_raw_zone" {
6868
}
6969
})
7070
}
71+
72+
resource "aws_glue_crawler" "parking_spatially_enriched_refined_zone" {
73+
count = local.is_live_environment ? 1 : 0
74+
name = "${local.short_identifier_prefix}Parking Spatially Enriched Refined Zone"
75+
role = data.aws_iam_role.glue_role.arn
76+
database_name = module.department_parking_data_source.refined_zone_catalog_database_name
77+
78+
s3_target {
79+
path = "s3://${module.refined_zone_data_source.bucket_id}/parking/spatially-enriched/"
80+
}
81+
table_prefix = "spatially_enriched_"
82+
configuration = jsonencode({
83+
Version = 1.0
84+
Grouping = {
85+
TableLevelConfiguration = 4
86+
}
87+
CrawlerOutput = {
88+
Partitions = { AddOrUpdateBehavior = "InheritFromTable" }
89+
Tables = { AddOrUpdateBehavior = "MergeNewColumns" }
90+
}
91+
})
92+
}

0 commit comments

Comments
 (0)