File tree 3 files changed +15
-1
lines changed
3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -272,6 +272,14 @@ Description: name of the cluster
272
272
273
273
Description: security group of the cluster
274
274
275
+ ### log\_ retention
276
+
277
+ Description: Log retention in days
278
+
279
+ Type: ` number `
280
+
281
+ Default: ` 30 `
282
+
275
283
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
276
284
## Usage
277
285
@@ -325,6 +333,7 @@ module "ecs" {
325
333
326
334
## Changelog
327
335
336
+ - 0.2.7 - Add custom value for log retention
328
337
- 0.2.6 - Enable AWS ECS metadata file
329
338
- 0.2.5 - Enable Datadog to collect APM logs
330
339
- 0.2.4 - Removed deprecated ` null_data_source `
Original file line number Diff line number Diff line change 1
1
resource "aws_cloudwatch_log_group" "log_group" {
2
2
name = local. name
3
- retention_in_days = 30
3
+ retention_in_days = var . log_retention
4
4
tags = local. tags
5
5
}
Original file line number Diff line number Diff line change @@ -95,6 +95,11 @@ variable "ssh_key_name" {
95
95
default = " "
96
96
}
97
97
98
+ variable "log_retention" {
99
+ description = " Log retention in Days"
100
+ default = 30
101
+ }
102
+
98
103
variable "instance_tags" {
99
104
type = list (object ({
100
105
key = string
You can’t perform that action at this time.
0 commit comments