File tree Expand file tree Collapse file tree 1 file changed +26
-1
lines changed
plugins/dynamic-few-shot-lambda Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments