Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(terraform): vol5223 add iam policy statement to allow eventbridge #221

Merged
merged 8 commits into from
Aug 7, 2024
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