Skip to content

Commit d278154

Browse files
author
Daniel Lorch
committed
chore: use KMS key for log group
1 parent b88ace7 commit d278154

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -174,15 +174,10 @@ Resources:
174174

175175
DynamicFewShotLogGroup:
176176
Type: AWS::Logs::LogGroup
177-
Metadata:
178-
cfn_nag:
179-
rules_to_suppress:
180-
- id: W84
181-
reason: "Demo function - KMS CMK not required, but can be added by customer for production use cases"
182-
# checkov:skip=CKV_AWS_158: "Demo function - KMS CMK not required, but can be added by customer for production use cases"
183177
Properties:
184178
LogGroupName: !Sub "/aws/lambda/${LambdaFunctionName}"
185179
RetentionInDays: !Ref LogRetentionDays
180+
KmsKeyId: !GetAtt GenAIIDPCustomerManagedEncryptionKeyArn
186181

187182
DynamicFewShotVectorBucket:
188183
Type: AWS::S3Vectors::VectorBucket

0 commit comments

Comments
 (0)