Skip to content

Commit 5b2eb66

Browse files
committed
fix test
1 parent 4b15681 commit 5b2eb66

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/cdkConstructs/src/constructs/TypescriptLambdaFunction.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,10 @@ const getDefaultLambdaOptions = (
106106
* This construct creates:
107107
* - A Lambda function with TypeScript bundling
108108
* - CloudWatch log group with KMS encryption
109+
* - Managed IAM policy for writing logs
109110
* - IAM role for execution with necessary permissions
110111
* - Subscription filter on logs so they are forwarded to splunk
112+
* - Managed IAM policy for invoking the Lambda function
111113
*
112114
* It also
113115
* - attaches the Lambda Insights layer for monitoring.

packages/cdkConstructs/tests/functionConstruct.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ describe("functionConstruct works correctly", () => {
106106
},
107107
"ManagedPolicyArns": Match.arrayWith([
108108
{"Fn::ImportValue": "lambda-resources:LambdaInsightsLogGroupPolicy"},
109-
{"Fn::ImportValue": "account-resources:CloudwatchEncryptionKMSPolicyArn"},
110-
{"Fn::ImportValue": "account-resources:LambdaDecryptSecretsKMSPolicy"}
109+
{"Fn::ImportValue": "account-resources:CloudwatchEncryptionKMSPolicyArn"}
111110
])
112111
})
113112
})
@@ -214,7 +213,6 @@ describe("functionConstruct works correctly with additional policies", () => {
214213
"ManagedPolicyArns": Match.arrayWith([
215214
{"Fn::ImportValue": "lambda-resources:LambdaInsightsLogGroupPolicy"},
216215
{"Fn::ImportValue": "account-resources:CloudwatchEncryptionKMSPolicyArn"},
217-
{"Fn::ImportValue": "account-resources:LambdaDecryptSecretsKMSPolicy"},
218216
{Ref: testPolicyResource.Ref}
219217
])
220218
})

0 commit comments

Comments
 (0)