Skip to content

Commit b88ace7

Browse files
author
Daniel Lorch
committed
chore: make LogRetentionDays as parameter
1 parent f1ec3b9 commit b88ace7

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

plugins/dynamic-few-shot-lambda/template.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,31 @@ Parameters:
5757
- ERROR
5858
Description: Default logging level
5959

60+
LogRetentionDays:
61+
Type: Number
62+
Default: 30
63+
Description: Number of days to retain CloudWatch logs
64+
AllowedValues:
65+
[
66+
1,
67+
3,
68+
5,
69+
7,
70+
14,
71+
30,
72+
60,
73+
90,
74+
120,
75+
150,
76+
180,
77+
365,
78+
400,
79+
545,
80+
731,
81+
1827,
82+
3653,
83+
]
84+
6085
GenAIIDPS3OutputBucketName:
6186
Type: String
6287
Description: "GenAIIDP S3OutputBucketName"
@@ -157,7 +182,7 @@ Resources:
157182
# checkov:skip=CKV_AWS_158: "Demo function - KMS CMK not required, but can be added by customer for production use cases"
158183
Properties:
159184
LogGroupName: !Sub "/aws/lambda/${LambdaFunctionName}"
160-
RetentionInDays: 7 # Short retention for demo purposes
185+
RetentionInDays: !Ref LogRetentionDays
161186

162187
DynamicFewShotVectorBucket:
163188
Type: AWS::S3Vectors::VectorBucket

0 commit comments

Comments
 (0)