Skip to content

Commit

Permalink
Set log retention to infinite
Browse files Browse the repository at this point in the history
  • Loading branch information
nikki-t committed Jul 20, 2023
1 parent 000121a commit 2a7fc83
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions terraform/generate-cw.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,44 +3,44 @@
# Downloader
resource "aws_cloudwatch_log_group" "generate_cw_log_group_downloader" {
name = "/aws/batch/job/${var.prefix}-downloader/"
retention_in_days = 120
retention_in_days = 0
}

resource "aws_cloudwatch_log_group" "generate_cw_log_group_downloader_error" {
name = "/aws/batch/job/${var.prefix}-downloader-errors/"
retention_in_days = 120
retention_in_days = 0
}

# Combiner
resource "aws_cloudwatch_log_group" "generate_cw_log_group_combiner" {
name = "/aws/batch/job/${var.prefix}-combiner/"
retention_in_days = 120
retention_in_days = 0
}

resource "aws_cloudwatch_log_group" "generate_cw_log_group_combiner_error" {
name = "/aws/batch/job/${var.prefix}-combiner-errors/"
retention_in_days = 120
retention_in_days = 0
}

# Processor
resource "aws_cloudwatch_log_group" "generate_cw_log_group_processor" {
name = "/aws/batch/job/${var.prefix}-processor/"
retention_in_days = 120
retention_in_days = 0
}

resource "aws_cloudwatch_log_group" "generate_cw_log_group_processor_error" {
name = "/aws/batch/job/${var.prefix}-processor-errors/"
retention_in_days = 120
retention_in_days = 0
}

# Uploader
resource "aws_cloudwatch_log_group" "generate_cw_log_group_uploader" {
name = "/aws/batch/job/${var.prefix}-uploader/"
retention_in_days = 120
retention_in_days = 0
}

# CloudWatch Logs
resource "aws_cloudwatch_log_group" "generate_cw_log_group_license_returner" {
name = "/aws/batch/job/${var.prefix}-license-returner/"
retention_in_days = 120
retention_in_days = 0
}

0 comments on commit 2a7fc83

Please sign in to comment.