File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -381,7 +381,7 @@ resource "aws_iam_role" "cloud-agent" {
381
381
resource "aws_cloudwatch_log_group" "connection" {
382
382
count = var. create ? 1 : 0
383
383
name = " depot-connection-${ var . connection-id } "
384
- retention_in_days = 7
384
+ retention_in_days = var . cloud-agent-log-retention
385
385
}
386
386
387
387
resource "aws_ssm_parameter" "connection-token" {
Original file line number Diff line number Diff line change @@ -24,6 +24,12 @@ variable "cloud-agent-version" {
24
24
default = " 2"
25
25
}
26
26
27
+ variable "cloud-agent-log-retention" {
28
+ type = number
29
+ description = " Number of days to keep cloudwatch logs for the cloud-agent"
30
+ default = 7
31
+ }
32
+
27
33
variable "create" {
28
34
type = bool
29
35
description = " Controls if Depot connection resources should be created"
You can’t perform that action at this time.
0 commit comments