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" {
381381resource "aws_cloudwatch_log_group" "connection" {
382382 count = var. create ? 1 : 0
383383 name = " depot-connection-${ var . connection-id } "
384- retention_in_days = 7
384+ retention_in_days = var . cloud-agent-log-retention
385385}
386386
387387resource "aws_ssm_parameter" "connection-token" {
Original file line number Diff line number Diff line change @@ -24,6 +24,12 @@ variable "cloud-agent-version" {
2424 default = " 2"
2525}
2626
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+
2733variable "create" {
2834 type = bool
2935 description = " Controls if Depot connection resources should be created"
You can’t perform that action at this time.
0 commit comments