Skip to content

Commit

Permalink
Merge pull request #2380 from ministryofjustice/DPR-498
Browse files Browse the repository at this point in the history
DPR-498 add contract registry name parameter to DataHubJob
  • Loading branch information
harichintala1 authored May 31, 2023
2 parents 3288b0c + 2d4830f commit 8714e9a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions terraform/environments/digital-prison-reporting/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
###############################################
## Glue Job, Reporting Hub
## Glue Cloud Platform Ingestion Job (Load, Reload, CDC)
locals {
glue_avro_registry = split("/", module.glue_registry_avro.registry_name)
}

module "glue_reporting_hub_job" {
source = "./modules/glue_job"
create_job = local.create_job
Expand Down Expand Up @@ -52,6 +56,7 @@ module "glue_reporting_hub_job" {
"--enable-spark-ui" = false
"--enable-job-insights" = true
"--dpr.aws.kinesis.endpointUrl" = "https://kinesis.${local.account_region}.amazonaws.com"
"--dpr.contract.registryName" = trimprefix(module.glue_registry_avro.registry_name, "${local.glue_avro_registry[0]}/")
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
output "registry_name" {
description = "Registry Name"
value = aws_glue_registry.glue_registry[0].id
}

0 comments on commit 8714e9a

Please sign in to comment.