Skip to content

Commit

Permalink
Add log groups for db-migrator and worker
Browse files Browse the repository at this point in the history
  • Loading branch information
shri committed Aug 9, 2024
1 parent 0270973 commit 195bdaf
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion deploy/aws/tf/modules/cloudwatch/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,27 @@ resource "aws_cloudwatch_log_group" "app_log_group" {
retention_in_days = 7

tags = {
Name = "${var.app_name}-log-group-${var.environment}"
Name = "${var.app_name}-app-log-group-${var.environment}"
Env = var.environment
}
}

resource "aws_cloudwatch_log_group" "db_migrator_log_group" {
name = "/ecs/${var.app_name}-db-migrator-${var.environment}"
retention_in_days = 7

tags = {
Name = "${var.app_name}-db-migrator-log-group-${var.environment}"
Env = var.environment
}
}

resource "aws_cloudwatch_log_group" "worker_log_group" {
name = "/ecs/${var.app_name}-worker-${var.environment}"
retention_in_days = 7

tags = {
Name = "${var.app_name}-worker-log-group-${var.environment}"
Env = var.environment
}
}

0 comments on commit 195bdaf

Please sign in to comment.