Skip to content

Commit

Permalink
feat(terraform) test commit
Browse files Browse the repository at this point in the history
  • Loading branch information
cmarstondvsa committed Jun 10, 2024
1 parent 531e8b4 commit 6e819d7
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions infra/terraform/modules/service/eventbridge.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
module "eventbridge" {
source = "terraform-aws-modules/eventbridge/aws"

bus_name = "api-bus"

schedules = {
cli-batch-job = {

flexible_time_window = {
mode = "OFF"
}

schedule_expression = "rate(1 hours)"

target = {
arn = "arn:aws:scheduler:::aws-sdk:batch:submitJob"
role_arn = "arn:aws:iam::054614622558:role/batch-execution-role"

input = jsonencode({
JobDefinition = "arn:aws:batch:eu-west-1:054614622558:job-definition/mat-test-job:5"
JobName = "TestJob"
JobQueue = "arn:aws:batch:eu-west-1:054614622558:job-queue/MatTestHighPriorityFargate"
})
}
}
}
}

0 comments on commit 6e819d7

Please sign in to comment.