Skip to content

Commit 58b2dd4

Browse files
authored
Merge branch 'main' into di-447-amend-dq-tests-for-housing
2 parents 7b69de7 + 5f38c38 commit 58b2dd4

File tree

7 files changed

+21
-22
lines changed

7 files changed

+21
-22
lines changed

docker/sql-to-parquet/entrypoint.sh

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,18 @@ echo "Snapshot Id - $SNAPSHOT_ID"
1919
FILENAME="liberator_dump_${DATE}"
2020
DBNAME="liberator"
2121

22-
MYSQL_CONN_PARAMS="--user=${MYSQL_USER} --password=${MYSQL_PASS} --host=${MYSQL_HOST}"
22+
echo "Retrieving pem file..."
23+
wget -O /tmp/rds-combined-ca-bundle.pem https://truststore.pki.rds.amazonaws.com/eu-west-2/eu-west-2-bundle.pem
2324

24-
SSL_MODE=${MYSQL_SSL_MODE:-""}
25-
OTHER_FLAGS=${MYSQL_OTHER_FLAGS:-""}
25+
MYSQL_CONN_PARAMS="--user=${MYSQL_USER} --password=${MYSQL_PASS} --host=${MYSQL_HOST} --ssl-ca=/tmp/rds-combined-ca-bundle.pem"
2626

27-
if [ -n "$SSL_MODE" ]; then
28-
MYSQL_CONN_PARAMS="$MYSQL_CONN_PARAMS --ssl-mode=$SSL_MODE"
29-
echo "SSL Mode set to $SSL_MODE"
30-
fi
27+
OTHER_FLAGS=${MYSQL_OTHER_FLAGS:-""}
3128

3229
if [ -n "$OTHER_FLAGS" ]; then
3330
MYSQL_CONN_PARAMS="$MYSQL_CONN_PARAMS $OTHER_FLAGS"
3431
echo "Additional MySQL flags: $OTHER_FLAGS"
3532
fi
3633

37-
echo "MYSQL connection params: $MYSQL_CONN_PARAMS"
38-
3934
echo "Deleting old snapshots in database..."
4035
python3 delete_db_snapshots_in_db.py
4136

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
numpy==2.1.3
1+
numpy==2.2.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
gspread==6.1.4
22
oauth2client==4.1.3
3-
google-api-python-client==2.154.0
3+
google-api-python-client==2.155.0
44
yagmail==0.15.293

lambdas/vonage_api_ingestion/Pipfile.lock

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/jobs/parking/parking_cedar_payments.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ def sparkSqlQuery(glueContext, query, mapping, transformation_ctx) -> DynamicFra
6262
SELECT
6363
cc, subj,analysis, trandate,
6464
CASE
65-
When trandate like '%/%'Then CAST(substr(trandate, 7, 4)||'-'||substr(trandate, 4,2)||'-'||'01' as date)
65+
When trandate like '%/%' Then
66+
CAST(substr(trandate, 7, 4)||'-'||substr(trandate, 4,2)||'-'||'01' as date)
67+
When substr(trandate, 1, 4) like '%-%' Then
68+
CAST(substr(trandate, 7, 4)||'-'||substr(trandate, 4,2)||'-'||'01' as date)
6669
ELSE cast(concat(substr(Cast(trandate as varchar(10)),1, 7), '-01') as date)
6770
END as PayMonthYear,
6871
description, o_description, cast(financialvalue as decimal(10,2)) as financialvalue

terraform/etl/09-spreadsheet-imports-from-g-drive.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,11 +287,11 @@ module "Cedar_Parking_Payments" {
287287
landing_zone_bucket_id = module.landing_zone_data_source.bucket_id
288288
landing_zone_kms_key_arn = module.landing_zone_data_source.kms_key_arn
289289
landing_zone_bucket_arn = module.landing_zone_data_source.bucket_arn
290-
google_drive_document_id = "1er6XED0byp3Gu3yPfOI9Ao3_Gp8ZnQ9s"
290+
google_drive_document_id = "10Rw1t_0Yvrhq7yocwRiDnjAELeFMOwx6"
291291
glue_job_name = "Cedar Parking Payments"
292292
output_folder_name = "g-drive"
293293
raw_zone_bucket_id = module.raw_zone_data_source.bucket_id
294-
input_file_name = "Cedar_Parking_Payments/Cedar_Parking_Payments_nov_2024.csv"
294+
input_file_name = "Cedar_Parking_Payments/Cedar_Parking_Payments_nov_update_2024.csv"
295295
ingestion_schedule = "cron(0 21 * * ? *)"
296296
enable_bookmarking = true
297297
worksheets = {
@@ -992,11 +992,11 @@ module "interim_cycle_wait_list" {
992992
landing_zone_bucket_id = module.landing_zone_data_source.bucket_id
993993
landing_zone_kms_key_arn = module.landing_zone_data_source.kms_key_arn
994994
landing_zone_bucket_arn = module.landing_zone_data_source.bucket_arn
995-
google_drive_document_id = "1ObXnGJmYS04j1-lBQiz3-kSwuP5BvXFz"
995+
google_drive_document_id = "1EFk08b0_eN0BJ_eAYUWKlhTLnhGeU6Oa"
996996
glue_job_name = "interim_cycle_wait_list"
997997
output_folder_name = "g-drive"
998998
raw_zone_bucket_id = module.raw_zone_data_source.bucket_id
999-
input_file_name = "Interim_Cycle_Hangar_Wait_List/interim_cycle_wait_list @ 19-11-2024.csv"
999+
input_file_name = "Interim_Cycle_Hangar_Wait_List/interim_cycle_wait_list @ 17-12-2024.csv"
10001000
ingestion_schedule = "cron(0 21 * * ? *)"
10011001
enable_bookmarking = true
10021002
worksheets = {

terraform/etl/24-aws-glue-spatial.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ module "addressbasepremium_load_files" {
168168
job_parameters = {
169169
"--job-bookmark-option" = "job-bookmark-disable"
170170
"--raw_bucket" = module.raw_zone_data_source.bucket_id
171-
"--raw_prefix" = "unrestricted/os-addressbase-premium/full-supply/epoch-105/raw/"
172-
"--processed_data_path" = "s3://${module.raw_zone_data_source.bucket_id}/unrestricted/os-addressbase-premium/full-supply/epoch-105/processed/"
171+
"--raw_prefix" = "unrestricted/os-addressbase-premium/full-supply/epoch-114/raw/"
172+
"--processed_data_path" = "s3://${module.raw_zone_data_source.bucket_id}/unrestricted/os-addressbase-premium/full-supply/epoch-114/processed/"
173173
}
174174
script_name = "addressbasepremium_load_files"
175175
}
@@ -192,7 +192,7 @@ module "addressbasepremium_create_address_table" {
192192
"--job-bookmark-option" = "job-bookmark-disable"
193193
"--blpu_class_lookup_path" = "s3://${module.glue_scripts_data_source.bucket_id}/${aws_s3_object.blpu_class_lookup.key}"
194194
"--ward_lookup_path" = "s3://${module.glue_scripts_data_source.bucket_id}/${aws_s3_object.ons_ward_lookup.key}"
195-
"--processed_source_data_path" = "s3://${module.raw_zone_data_source.bucket_id}/unrestricted/os-addressbase-premium/full-supply/epoch-105/processed/"
195+
"--processed_source_data_path" = "s3://${module.raw_zone_data_source.bucket_id}/unrestricted/os-addressbase-premium/full-supply/epoch-114/processed/"
196196
"--target_path" = "s3://${module.refined_zone_data_source.bucket_id}/unrestricted/national_address"
197197
}
198198
script_name = "addressbasepremium_create_address_table"

0 commit comments

Comments
 (0)