Skip to content

Commit 67798fb

Browse files
authored
Stack: support configurable log retention days.
1 parent 42f26a8 commit 67798fb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

templates/aws-stack.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Metadata:
4949
- BuildkiteWindowsAdministrator
5050
- BuildkiteAgentScalerServerlessARN
5151
- BuildkiteAgentScalerVersion
52+
- LogRetentionDays
5253

5354
- Label:
5455
default: Network Configuration
@@ -187,6 +188,11 @@ Parameters:
187188
Type: String
188189
Default: "1.7.0"
189190

191+
LogRetentionDays:
192+
Type: Number
193+
Description: The number of days to retain the Cloudwatch Logs of the lambda.
194+
Default: "1"
195+
190196
BuildkiteAgentTracingBackend:
191197
Description: The tracing backend to use for CI tracing. See https://buildkite.com/docs/agent/v3/tracing
192198
Type: String
@@ -1434,3 +1440,4 @@ Resources:
14341440
ScaleOutForWaitingJobs: !Ref ScaleOutForWaitingJobs
14351441
EventSchedulePeriod: !Ref ScalerEventSchedulePeriod
14361442
MinPollInterval: !Ref ScalerMinPollInterval
1443+
LogRetentionDays: !Ref LogRetentionDays

0 commit comments

Comments
 (0)