Skip to content

Commit

Permalink
fix(terraform): vol5223 add iam policy statement to allow eventbridge (
Browse files Browse the repository at this point in the history
…#221)

* fix(terraform): vol5223 add iam policy statement to allow eventbridge to kick off batch jobs

* docs: update Terraform docs

* fix(terraform): vol5223 fix formatting

* fix(terraform): vol5223 fix format of eventbridge iam policy

* docs: update Terraform docs

* fix(terraform): vol5223 fix format of eventbridge iam policy

* fix(terraform): vol5223 fix format of eventbridge iam policy

* docs: update Terraform docs

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
matbeales and github-actions[bot] authored Aug 7, 2024
1 parent dfc4a2c commit e29d53a
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions infra/terraform/modules/service/batch.tf
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,20 @@ module "eventbridge" {
source = "terraform-aws-modules/eventbridge/aws"
version = "~> 3.7"

create_bus = false
create_role = true
create_bus = false

create_role = true
role_name = "vol-app-${var.environment}-batch-scheduler"
attach_policy_statements = true
policy_statements = {
batch = {
effect = "Allow"
actions = [
"batch:SubmitJob"
]
resources = [for job in module.batch.job_definitions : job.arn]
}
}

schedules = local.schedules
}
Expand Down

0 comments on commit e29d53a

Please sign in to comment.