Skip to content

Commit

Permalink
refactor: rename the Glue Jobs (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardolsmendes authored Jan 11, 2024
1 parent c7ac70f commit f833f4e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions infrastructure/modules/glue/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions infrastructure/modules/glue/orchestration.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f833f4e

Please sign in to comment.