Skip to content

Commit

Permalink
add cloudwatch log retention period (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrenarciso4 authored Feb 14, 2024
1 parent d65233b commit 87f20a8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 3 additions & 2 deletions terraform/cloudwatchlogs.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
resource "aws_cloudwatch_log_group" "roxprox" {
name = "roxprox"
kms_key_id = var.cloudwatch_logs_kms
name = "roxprox"
kms_key_id = var.cloudwatch_logs_kms
retention_in_days = var.cloudwatch_log_retention_period
}

5 changes: 5 additions & 0 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ variable "cloudwatch_logs_kms" {
default = ""
}

variable "cloudwatch_log_retention_period" {
description = "cloudwatch retention period in days"
default = "0"
}

variable "s3_bucket" {
description = "name of s3 bucket to use"
}
Expand Down

0 comments on commit 87f20a8

Please sign in to comment.