diff --git a/infra/terraform/modules/service/batch.tf b/infra/terraform/modules/service/batch.tf index 05e19eba35..f0689702bc 100644 --- a/infra/terraform/modules/service/batch.tf +++ b/infra/terraform/modules/service/batch.tf @@ -222,6 +222,7 @@ module "sns_batch_failure" { sub = { actions = [ + "sns:Publish", "sns:Subscribe", "sns:Receive", ] @@ -230,12 +231,6 @@ module "sns_batch_failure" { type = "Service" identifiers = ["events.amazonaws.com"] }] - - conditions = [{ - test = "ArnLike" - variable = "aws:SourceArn" - values = [module.eventbridge_sns.eventbridge_bus_arn] - }] } } @@ -257,7 +252,7 @@ module "sqs_deadletter" { version = "~> 4.2.1" source = "terraform-aws-modules/sqs/aws" - name = "vol-app-${var.environment}-batch-failure-dlq" + name = "vol-app-${var.environment}-batch-failure-queue" create_dlq = true redrive_policy = {