Skip to content

Commit

Permalink
Add cloudwatch logs to app container
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrixroa committed Jan 14, 2021
1 parent b43c272 commit aa47e53
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,12 @@ resource "aws_cloudwatch_log_group" "main" {
retention_in_days = 14
}

resource "aws_cloudwatch_log_group" "main_app" {
count = var.use_cloudwatch_logs ? 1 : 0
name = var.name
retention_in_days = 14
}

/*===========================================
Autoscaling zone
============================================*/
Expand Down

0 comments on commit aa47e53

Please sign in to comment.