Skip to content

Commit 252420a

Browse files
authored
Merge pull request #8 from SPHTech-Platform/feature/add-cloudwatch-log-retention
Added cloudwatch log retention
2 parents aacc753 + 10bb606 commit 252420a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Diff for: main.tf

+1
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,5 @@ module "lambda" {
6464
policy_statements = var.policy_statements
6565
number_of_policy_jsons = var.number_of_policy_jsons
6666

67+
cloudwatch_logs_retention_in_days = var.cloudwatch_logs_retention_in_days
6768
}

Diff for: variables.tf

+9
Original file line numberDiff line numberDiff line change
@@ -287,3 +287,12 @@ variable "policy_json" {
287287
type = string
288288
default = null
289289
}
290+
291+
##################
292+
# Cloudwatch Logs
293+
##################
294+
variable "cloudwatch_logs_retention_in_days" {
295+
description = "Number of days the cloudwatch logs will be retained. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653."
296+
type = number
297+
default = 7
298+
}

0 commit comments

Comments
 (0)