Skip to content

Commit 239e695

Browse files
authored
Align differences in the terraformed parking jobs with the manually created jobs in pre-production and modify jobs triggers to Order jobs correctly based on what they are dependant on (#822)
1 parent 062c3c4 commit 239e695

File tree

1 file changed

+40
-40
lines changed

1 file changed

+40
-40
lines changed

terraform/etl/38-aws-glue-job-parking.tf

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ module "parking_pcn_denormalisation" {
4444
number_of_workers_for_glue_job = 10
4545
glue_job_worker_type = "G.1X"
4646
job_parameters = {
47-
"--job-bookmark-option" = "job-bookmark-enable"
47+
"--job-bookmark-option" = "job-bookmark-disable"
4848
"--environment" = var.environment
4949
}
5050
}
@@ -84,7 +84,7 @@ module "parking_school_street_vrms" {
8484
number_of_workers_for_glue_job = 10
8585
glue_job_worker_type = "G.1X"
8686
job_parameters = {
87-
"--job-bookmark-option" = "job-bookmark-enable"
87+
"--job-bookmark-option" = "job-bookmark-disable"
8888
"--environment" = var.environment
8989
}
9090
}
@@ -104,7 +104,7 @@ module "parking_estate_waiting_list_live_permits_type_gds" {
104104
number_of_workers_for_glue_job = 10
105105
glue_job_worker_type = "G.1X"
106106
job_parameters = {
107-
"--job-bookmark-option" = "job-bookmark-enable"
107+
"--job-bookmark-option" = "job-bookmark-disable"
108108
"--environment" = var.environment
109109
}
110110
}
@@ -124,7 +124,7 @@ module "parking_gds_permit_change_comparison" {
124124
number_of_workers_for_glue_job = 10
125125
glue_job_worker_type = "G.1X"
126126
job_parameters = {
127-
"--job-bookmark-option" = "job-bookmark-enable"
127+
"--job-bookmark-option" = "job-bookmark-disable"
128128
"--environment" = var.environment
129129
}
130130
}
@@ -145,7 +145,7 @@ module "parking_kpi_gds_summary" {
145145
glue_job_worker_type = "G.1X"
146146
glue_job_timeout = 240
147147
job_parameters = {
148-
"--job-bookmark-option" = "job-bookmark-enable"
148+
"--job-bookmark-option" = "job-bookmark-disable"
149149
"--environment" = var.environment
150150
}
151151
}
@@ -165,7 +165,7 @@ module "parking_foi_pcn_gds_summary" {
165165
number_of_workers_for_glue_job = 10
166166
glue_job_worker_type = "G.1X"
167167
job_parameters = {
168-
"--job-bookmark-option" = "job-bookmark-enable"
168+
"--job-bookmark-option" = "job-bookmark-disable"
169169
"--environment" = var.environment
170170
}
171171
}
@@ -205,7 +205,7 @@ module "parking_reps_and_appeals_correspondance_kpi_gds_summary" {
205205
number_of_workers_for_glue_job = 10
206206
glue_job_worker_type = "G.1X"
207207
job_parameters = {
208-
"--job-bookmark-option" = "job-bookmark-enable"
208+
"--job-bookmark-option" = "job-bookmark-disable"
209209
"--environment" = var.environment
210210
}
211211
}
@@ -225,7 +225,7 @@ module "parking_reps_and_appeals_correspondance_kpi_gds_summary_qtr" {
225225
number_of_workers_for_glue_job = 10
226226
glue_job_worker_type = "G.1X"
227227
job_parameters = {
228-
"--job-bookmark-option" = "job-bookmark-enable"
228+
"--job-bookmark-option" = "job-bookmark-disable"
229229
"--environment" = var.environment
230230
}
231231
}
@@ -245,7 +245,7 @@ module "parking_vouchers_approved_summary_gds" {
245245
number_of_workers_for_glue_job = 10
246246
glue_job_worker_type = "G.1X"
247247
job_parameters = {
248-
"--job-bookmark-option" = "job-bookmark-enable"
248+
"--job-bookmark-option" = "job-bookmark-disable"
249249
"--environment" = var.environment
250250
}
251251
}
@@ -265,7 +265,7 @@ module "parking_bailiff_allocation" {
265265
number_of_workers_for_glue_job = 10
266266
glue_job_worker_type = "G.1X"
267267
job_parameters = {
268-
"--job-bookmark-option" = "job-bookmark-enable"
268+
"--job-bookmark-option" = "job-bookmark-disable"
269269
"--environment" = var.environment
270270
}
271271
}
@@ -285,7 +285,7 @@ module "parking_bailiff_ea_warrant_total" {
285285
number_of_workers_for_glue_job = 10
286286
glue_job_worker_type = "G.1X"
287287
job_parameters = {
288-
"--job-bookmark-option" = "job-bookmark-enable"
288+
"--job-bookmark-option" = "job-bookmark-disable"
289289
"--environment" = var.environment
290290
}
291291
}
@@ -305,7 +305,7 @@ module "parking_bailiff_return" {
305305
number_of_workers_for_glue_job = 10
306306
glue_job_worker_type = "G.1X"
307307
job_parameters = {
308-
"--job-bookmark-option" = "job-bookmark-enable"
308+
"--job-bookmark-option" = "job-bookmark-disable"
309309
"--environment" = var.environment
310310
}
311311
}
@@ -325,7 +325,7 @@ module "parking_pcn_create_event_log" {
325325
number_of_workers_for_glue_job = 10
326326
glue_job_worker_type = "G.1X"
327327
job_parameters = {
328-
"--job-bookmark-option" = "job-bookmark-enable"
328+
"--job-bookmark-option" = "job-bookmark-disable"
329329
"--environment" = var.environment
330330
}
331331
}
@@ -338,14 +338,14 @@ module "parking_pcn_report_summary" {
338338
pydeequ_zip_key = data.aws_s3_bucket_object.pydeequ.key
339339
spark_ui_output_storage_id = module.spark_ui_output_storage_data_source.bucket_id
340340
script_name = "parking_pcn_report_summary"
341-
triggered_by_job = "${local.short_identifier_prefix}Copy parking Liberator landing zone to raw"
341+
triggered_by_job = module.parking_pcn_denormalisation.job_name
342342
job_description = "This job creates the % return figures for the Bailiff data"
343343
workflow_name = "${local.short_identifier_prefix}parking-liberator-data-workflow"
344344
trigger_enabled = local.is_production_environment
345345
number_of_workers_for_glue_job = 10
346346
glue_job_worker_type = "G.1X"
347347
job_parameters = {
348-
"--job-bookmark-option" = "job-bookmark-enable"
348+
"--job-bookmark-option" = "job-bookmark-disable"
349349
"--environment" = var.environment
350350
}
351351
}
@@ -358,7 +358,7 @@ module "parking_pcn_ltn_report_summary" {
358358
pydeequ_zip_key = data.aws_s3_bucket_object.pydeequ.key
359359
spark_ui_output_storage_id = module.spark_ui_output_storage_data_source.bucket_id
360360
script_name = "parking_pcn_ltn_report_summary"
361-
triggered_by_job = "${local.short_identifier_prefix}Copy parking Liberator landing zone to raw"
361+
triggered_by_job = module.parking_pcn_denormalisation.job_name
362362
job_description = "This job creates the LTN PCN count and Total paid"
363363
workflow_name = "${local.short_identifier_prefix}parking-liberator-data-workflow"
364364
trigger_enabled = local.is_production_environment
@@ -385,7 +385,7 @@ module "parking_suspension_de-normalised_data" {
385385
number_of_workers_for_glue_job = 10
386386
glue_job_worker_type = "G.1X"
387387
job_parameters = {
388-
"--job-bookmark-option" = "job-bookmark-enable"
388+
"--job-bookmark-option" = "job-bookmark-disable"
389389
"--environment" = var.environment
390390
}
391391
}
@@ -405,7 +405,7 @@ module "parking_cycle_hangars_denormalisation" {
405405
number_of_workers_for_glue_job = 10
406406
glue_job_worker_type = "G.1X"
407407
job_parameters = {
408-
"--job-bookmark-option" = "job-bookmark-enable"
408+
"--job-bookmark-option" = "job-bookmark-disable"
409409
"--environment" = var.environment
410410
}
411411
}
@@ -425,7 +425,7 @@ module "parking_reps_and_appeals_correspondance" {
425425
number_of_workers_for_glue_job = 10
426426
glue_job_worker_type = "G.1X"
427427
job_parameters = {
428-
"--job-bookmark-option" = "job-bookmark-enable"
428+
"--job-bookmark-option" = "job-bookmark-disable"
429429
"--environment" = var.environment
430430
}
431431
}
@@ -445,7 +445,7 @@ module "parking_permit_de_normalisation" {
445445
number_of_workers_for_glue_job = 10
446446
glue_job_worker_type = "G.1X"
447447
job_parameters = {
448-
"--job-bookmark-option" = "job-bookmark-enable"
448+
"--job-bookmark-option" = "job-bookmark-disable"
449449
"--environment" = var.environment
450450
}
451451
}
@@ -465,7 +465,7 @@ module "parking_cedar_payments" {
465465
number_of_workers_for_glue_job = 10
466466
glue_job_worker_type = "G.1X"
467467
job_parameters = {
468-
"--job-bookmark-option" = "job-bookmark-enable"
468+
"--job-bookmark-option" = "job-bookmark-disable"
469469
"--environment" = var.environment
470470
}
471471
}
@@ -485,7 +485,7 @@ module "parking_cedar_fulling_total_summary" {
485485
number_of_workers_for_glue_job = 10
486486
glue_job_worker_type = "G.1X"
487487
job_parameters = {
488-
"--job-bookmark-option" = "job-bookmark-enable"
488+
"--job-bookmark-option" = "job-bookmark-disable"
489489
"--environment" = var.environment
490490
}
491491
}
@@ -505,7 +505,7 @@ module "parking_ceo_on_street" {
505505
number_of_workers_for_glue_job = 10
506506
glue_job_worker_type = "G.1X"
507507
job_parameters = {
508-
"--job-bookmark-option" = "job-bookmark-enable"
508+
"--job-bookmark-option" = "job-bookmark-disable"
509509
"--environment" = var.environment
510510
}
511511
}
@@ -525,7 +525,7 @@ module "parking_ceo_summary" {
525525
number_of_workers_for_glue_job = 10
526526
glue_job_worker_type = "G.1X"
527527
job_parameters = {
528-
"--job-bookmark-option" = "job-bookmark-enable"
528+
"--job-bookmark-option" = "job-bookmark-disable"
529529
"--environment" = var.environment
530530
}
531531
}
@@ -538,14 +538,14 @@ module "parking_deployment_target_details" {
538538
pydeequ_zip_key = data.aws_s3_bucket_object.pydeequ.key
539539
spark_ui_output_storage_id = module.spark_ui_output_storage_data_source.bucket_id
540540
script_name = "parking_deployment_target_details"
541-
triggered_by_job = "${local.short_identifier_prefix}Copy parking Liberator landing zone to raw"
541+
triggered_by_job = module.parking_ceo_on_street.job_name
542542
job_description = "This job creates the Permit de-normalised data"
543543
workflow_name = "${local.short_identifier_prefix}parking-liberator-data-workflow"
544544
trigger_enabled = local.is_production_environment
545545
number_of_workers_for_glue_job = 10
546546
glue_job_worker_type = "G.1X"
547547
job_parameters = {
548-
"--job-bookmark-option" = "job-bookmark-enable"
548+
"--job-bookmark-option" = "job-bookmark-disable"
549549
"--environment" = var.environment
550550
}
551551
}
@@ -558,7 +558,7 @@ module "parking_ceo_average_on_street" {
558558
pydeequ_zip_key = data.aws_s3_bucket_object.pydeequ.key
559559
spark_ui_output_storage_id = module.spark_ui_output_storage_data_source.bucket_id
560560
script_name = "parking_ceo_average_on_street"
561-
triggered_by_job = "${local.short_identifier_prefix}Copy parking Liberator landing zone to raw"
561+
triggered_by_job = module.parking_ceo_on_street.job_name
562562
job_description = "This job creates the Permit de-normalised data"
563563
workflow_name = "${local.short_identifier_prefix}parking-liberator-data-workflow"
564564
trigger_enabled = local.is_production_environment
@@ -578,14 +578,14 @@ module "parking_percent_street_coverage" {
578578
pydeequ_zip_key = data.aws_s3_bucket_object.pydeequ.key
579579
spark_ui_output_storage_id = module.spark_ui_output_storage_data_source.bucket_id
580580
script_name = "parking_percent_street_coverage"
581-
triggered_by_job = "${local.short_identifier_prefix}Copy parking Liberator landing zone to raw"
581+
triggered_by_job = module.parking_deployment_target_details.job_name
582582
job_description = "This job creates the Permit de-normalised data"
583583
workflow_name = "${local.short_identifier_prefix}parking-liberator-data-workflow"
584584
trigger_enabled = local.is_production_environment
585585
number_of_workers_for_glue_job = 10
586586
glue_job_worker_type = "G.1X"
587587
job_parameters = {
588-
"--job-bookmark-option" = "job-bookmark-enable"
588+
"--job-bookmark-option" = "job-bookmark-disable"
589589
"--environment" = var.environment
590590
}
591591
}
@@ -598,14 +598,14 @@ module "parking_bailiff_warrant_figures" {
598598
pydeequ_zip_key = data.aws_s3_bucket_object.pydeequ.key
599599
spark_ui_output_storage_id = module.spark_ui_output_storage_data_source.bucket_id
600600
script_name = "parking_bailiff_warrant_figures"
601-
triggered_by_job = "${local.short_identifier_prefix}Copy parking Liberator landing zone to raw"
601+
triggered_by_job = module.parking_pcn_denormalisation.job_name
602602
job_description = "This job creates the Permit de-normalised data"
603603
workflow_name = "${local.short_identifier_prefix}parking-liberator-data-workflow"
604604
trigger_enabled = local.is_production_environment
605605
number_of_workers_for_glue_job = 10
606606
glue_job_worker_type = "G.1X"
607607
job_parameters = {
608-
"--job-bookmark-option" = "job-bookmark-enable"
608+
"--job-bookmark-option" = "job-bookmark-disable"
609609
"--environment" = var.environment
610610
}
611611
}
@@ -625,7 +625,7 @@ module "parking_markets_denormalisation" {
625625
number_of_workers_for_glue_job = 10
626626
glue_job_worker_type = "G.1X"
627627
job_parameters = {
628-
"--job-bookmark-option" = "job-bookmark-enable"
628+
"--job-bookmark-option" = "job-bookmark-disable"
629629
"--environment" = var.environment
630630
}
631631
}
@@ -638,14 +638,14 @@ module "parking_ceo_average_on_street_hrs_mins_secs" {
638638
pydeequ_zip_key = data.aws_s3_bucket_object.pydeequ.key
639639
spark_ui_output_storage_id = module.spark_ui_output_storage_data_source.bucket_id
640640
script_name = "parking_ceo_average_on_street_hrs_mins_secs"
641-
triggered_by_job = "${local.short_identifier_prefix}Copy parking Liberator landing zone to raw"
641+
triggered_by_job = module.parking_ceo_on_street.job_name
642642
job_description = "This job creates the Permit de-normalised data"
643643
workflow_name = "${local.short_identifier_prefix}parking-liberator-data-workflow"
644644
trigger_enabled = local.is_production_environment
645645
number_of_workers_for_glue_job = 10
646646
glue_job_worker_type = "G.1X"
647647
job_parameters = {
648-
"--job-bookmark-option" = "job-bookmark-enable"
648+
"--job-bookmark-option" = "job-bookmark-disable"
649649
"--environment" = var.environment
650650
}
651651
}
@@ -665,7 +665,7 @@ module "parking_market_licence_totals" {
665665
number_of_workers_for_glue_job = 10
666666
glue_job_worker_type = "G.1X"
667667
job_parameters = {
668-
"--job-bookmark-option" = "job-bookmark-enable"
668+
"--job-bookmark-option" = "job-bookmark-disable"
669669
"--environment" = var.environment
670670
}
671671
}
@@ -685,7 +685,7 @@ module "parking_cedar_backing_data_summary" {
685685
number_of_workers_for_glue_job = 10
686686
glue_job_worker_type = "G.1X"
687687
job_parameters = {
688-
"--job-bookmark-option" = "job-bookmark-enable"
688+
"--job-bookmark-option" = "job-bookmark-disable"
689689
"--environment" = var.environment
690690
}
691691
}
@@ -698,14 +698,14 @@ module "parking_percent_street_coverage_cpz" {
698698
pydeequ_zip_key = data.aws_s3_bucket_object.pydeequ.key
699699
spark_ui_output_storage_id = module.spark_ui_output_storage_data_source.bucket_id
700700
script_name = "parking_percent_street_coverage_cpz"
701-
triggered_by_job = "${local.short_identifier_prefix}Copy parking Liberator landing zone to raw"
701+
triggered_by_job = module.parking_deployment_target_details.job_name
702702
job_description = "This job creates the Permit de-normalised data"
703703
workflow_name = "${local.short_identifier_prefix}parking-liberator-data-workflow"
704704
trigger_enabled = local.is_production_environment
705705
number_of_workers_for_glue_job = 10
706706
glue_job_worker_type = "G.1X"
707707
job_parameters = {
708-
"--job-bookmark-option" = "job-bookmark-enable"
708+
"--job-bookmark-option" = "job-bookmark-disable"
709709
"--environment" = var.environment
710710
}
711711
}
@@ -718,7 +718,7 @@ module "parking_foreign_vrm_pcns" {
718718
pydeequ_zip_key = data.aws_s3_bucket_object.pydeequ.key
719719
spark_ui_output_storage_id = module.spark_ui_output_storage_data_source.bucket_id
720720
script_name = "parking_foreign_vrm_pcns"
721-
triggered_by_job = "${local.short_identifier_prefix}Copy parking Liberator landing zone to raw"
721+
triggered_by_job = module.parking_pcn_denormalisation.job_name
722722
job_description = "This job creates the LTN PCN count and Total paid"
723723
workflow_name = "${local.short_identifier_prefix}parking-liberator-data-workflow"
724724
trigger_enabled = local.is_production_environment
@@ -745,7 +745,7 @@ module "parking_voucher_de_normalised" {
745745
number_of_workers_for_glue_job = 10
746746
glue_job_worker_type = "G.1X"
747747
job_parameters = {
748-
"--job-bookmark-option" = "job-bookmark-enable"
748+
"--job-bookmark-option" = "job-bookmark-disable"
749749
"--environment" = var.environment
750750
}
751751
}

0 commit comments

Comments
 (0)