Skip to content

Commit

Permalink
feat: 5809 batch alarm email testing (#377)
Browse files Browse the repository at this point in the history
* fix: batch rule names

* fix: naming and formatting

* docs: update Terraform docs

* fix: add name to targets

* fix: naming syntax

* docs: update Terraform docs

* fix: more event renaming

* feat: added sns email testing

* docs: update Terraform docs

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
Wi11Shell and github-actions[bot] authored Oct 9, 2024
1 parent 9703d68 commit 2ecbd09
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion infra/terraform/modules/service/batch.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" = {
Expand Down Expand Up @@ -236,6 +238,13 @@ module "sns_batch_failure" {
}
}

subscriptions = {
"vol-app-${var.environment}-batch-failure-email" = {
protocol = "email"
endpoint = "[email protected]"
}
}

tags = {
"Name" = "vol-app-${var.environment}-aws-sns-batch-failure"

Expand Down

0 comments on commit 2ecbd09

Please sign in to comment.