From f833f4e81ade17f8c78ffe21edc7708dc28e2681 Mon Sep 17 00:00:00 2001 From: Ricardo Mendes Date: Thu, 11 Jan 2024 19:36:32 -0300 Subject: [PATCH] refactor: rename the Glue Jobs (#46) --- infrastructure/modules/glue/locals.tf | 4 ++-- infrastructure/modules/glue/orchestration.tf | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/infrastructure/modules/glue/locals.tf b/infrastructure/modules/glue/locals.tf index 781ee73..3d54cfa 100644 --- a/infrastructure/modules/glue/locals.tf +++ b/infrastructure/modules/glue/locals.tf @@ -16,7 +16,7 @@ locals { us_legislators_jobs_map = { bronze = { - name = "glue-ci-cd-bronze-us-legislators-${var.environment}" + name = "glue-ci-cd-us-legislators-bronze-${var.environment}" description = "Sample Bronze-layer job for the AWS Glue CI/CD Blueprint." default_arguments = { "--source-bucket-name" = "awsglue-datasets", @@ -27,7 +27,7 @@ locals { script_location = "s3://${aws_s3_bucket.glue["scripts"].id}/s3_to_s3_job.py" }, silver = { - name = "glue-ci-cd-silver-us-legislators-${var.environment}" + name = "glue-ci-cd-us-legislators-silver-${var.environment}" description = "Sample Silver-layer job for the AWS Glue CI/CD Blueprint." default_arguments = { "--source-bucket-name" = var.data_bucket_id, diff --git a/infrastructure/modules/glue/orchestration.tf b/infrastructure/modules/glue/orchestration.tf index d8c9db3..2a9c8d9 100644 --- a/infrastructure/modules/glue/orchestration.tf +++ b/infrastructure/modules/glue/orchestration.tf @@ -4,7 +4,7 @@ resource "aws_glue_workflow" "us_legislators" { tags = local.default_tags } -resource "aws_glue_trigger" "bronze_us_legislators" { +resource "aws_glue_trigger" "us_legislators_bronze" { name = "us-legislators-bronze-${var.environment}" type = "ON_DEMAND" workflow_name = aws_glue_workflow.us_legislators.name @@ -14,7 +14,7 @@ resource "aws_glue_trigger" "bronze_us_legislators" { } } -resource "aws_glue_trigger" "silver_us_legislators" { +resource "aws_glue_trigger" "us_legislators_silver" { name = "us-legislators-silver-${var.environment}" type = "CONDITIONAL" workflow_name = aws_glue_workflow.us_legislators.name @@ -30,7 +30,7 @@ resource "aws_glue_trigger" "silver_us_legislators" { } } -resource "aws_glue_trigger" "silver_us_legislators_crawler" { +resource "aws_glue_trigger" "us_legislators_silver_crawler" { name = "us-legislators-silver-crawler-${var.environment}" type = "CONDITIONAL" workflow_name = aws_glue_workflow.us_legislators.name