Skip to content

Commit 3ad2c3c

Browse files
committed
NRL-1268 crawler auto start configured
1 parent 8896c05 commit 3ad2c3c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

terraform/account-wide-infrastructure/modules/glue/glue.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ resource "aws_glue_job" "glue_job" {
5151
"--datalake-formats" = "delta"
5252
"--source_path" = "s3://${aws_s3_bucket.source-data-bucket.id}/" # Specify the source S3 path
5353
"--target_path" = "s3://${aws_s3_bucket.target-data-bucket.id}/logs" # Specify the destination S3 path
54-
"--job_name" = "poc-glue-job"
54+
"--job_name" = "${var.name_prefix}-glue-job"
5555
"--enable-continuous-log-filter" = "true"
5656
"--enable-metrics" = "true"
5757
"--extra-py-files" = "s3://${aws_s3_bucket.code-bucket.id}/src.zip"

terraform/account-wide-infrastructure/modules/glue/src/pipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def __init__(
2727
region_name="eu-west-2",
2828
endpoint_url="https://glue.eu-west-2.amazonaws.com",
2929
)
30-
self.name_prefix = "-".join(job_name.split("-")[:3])
30+
self.name_prefix = "-".join(job_name.split("-")[:4])
3131

3232
def run(self):
3333
"""Runs ETL"""

0 commit comments

Comments
 (0)