diff --git a/infra/terraform/modules/service/batch.tf b/infra/terraform/modules/service/batch.tf index 8da0fb420f..dd863b983d 100644 --- a/infra/terraform/modules/service/batch.tf +++ b/infra/terraform/modules/service/batch.tf @@ -164,7 +164,9 @@ module "eventbridge_sns" { source = "terraform-aws-modules/eventbridge/aws" version = "~> 3.7" - create_bus = false + create_bus = false + create_role = true + role_name = "vol-app-${var.environment}-batch-failures" rules = { "vol-app-${var.environment}-batch-failure-event" = { @@ -236,6 +238,13 @@ module "sns_batch_failure" { } } + subscriptions = { + "vol-app-${var.environment}-batch-failure-email" = { + protocol = "email" + endpoint = "william.shelley@dvsa.gov.uk" + } + } + tags = { "Name" = "vol-app-${var.environment}-aws-sns-batch-failure"