Skip to content

Commit

Permalink
fix(terraform): add jobRoleArn to Batch containers (#181)
Browse files Browse the repository at this point in the history
* fix(terraform): add `jobRoleArn` to Batch containers

* fix(terraform): add CW prefix for Batch logs
  • Loading branch information
JoshuaLicense authored Jul 18, 2024
1 parent da12d1b commit f4ec653
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion infra/terraform/modules/service/batch.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ locals {
],

executionRoleArn = module.ecs_service["api"].task_exec_iam_role_arn
jobRoleArn = module.ecs_service["api"].tasks_iam_role_arn

logConfiguration = {
logDriver = "awslogs"
Expand Down Expand Up @@ -110,6 +111,6 @@ module "batch" {
}

resource "aws_cloudwatch_log_group" "this" {
name = "/aws/batch"
name = "/aws/batch/vol-app-${var.environment}"
retention_in_days = 1
}

0 comments on commit f4ec653

Please sign in to comment.