Skip to content

Commit 74d0de2

Browse files
committed
fix: make LogGroup child of API gateway
1 parent bb83c29 commit 74d0de2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/cdkConstructs/src/constructs/RestApiGateway.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export class RestApiGateway extends Construct {
103103

104104
if (props.mutualTlsTrustStoreKey) {
105105
const trustStoreKeyPrefix = `cpt-api/${props.stackName}-truststore`
106-
const logGroup = new LogGroup(scope, "LambdaLogGroup", {
106+
const logGroup = new LogGroup(this, "LambdaLogGroup", {
107107
encryptionKey: cloudWatchLogsKmsKey,
108108
logGroupName: `/aws/lambda/${props.stackName}-truststore-deployment`,
109109
retention: props.logRetentionInDays,

0 commit comments

Comments
 (0)