Skip to content

Commit 73a3b11

Browse files
committed
Set the log group removal policy to DESTROY
1 parent 56e65fe commit 73a3b11

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/cdk/constructs/LambdaFunction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class LambdaFunction extends Construct {
6363
encryptionKey: cloudWatchLogsKmsKey,
6464
logGroupName: `/aws/lambda/${props.functionName!}`,
6565
retention: props.logRetentionInDays,
66-
removalPolicy: RemovalPolicy.RETAIN
66+
removalPolicy: RemovalPolicy.DESTROY
6767
})
6868

6969
const cfnlogGroup = logGroup.node.defaultChild as CfnLogGroup

packages/cdk/constructs/RestApiGateway.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class RestApiGateway extends Construct {
5454
encryptionKey: cloudWatchLogsKmsKey,
5555
logGroupName: `/aws/apigateway/${props.stackName}-apigw`,
5656
retention: props.logRetentionInDays,
57-
removalPolicy: RemovalPolicy.RETAIN
57+
removalPolicy: RemovalPolicy.DESTROY
5858
})
5959

6060
new CfnSubscriptionFilter(this, "ApiGatewayAccessLogsSplunkSubscriptionFilter", {

0 commit comments

Comments
 (0)