File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ export class LambdaFunction extends Construct {
6262 encryptionKey : cloudWatchLogsKmsKey ,
6363 logGroupName : `/aws/lambda/${ props . functionName ! } ` ,
6464 retention : props . logRetentionInDays ,
65- removalPolicy : RemovalPolicy . RETAIN
65+ removalPolicy : RemovalPolicy . DESTROY
6666 } )
6767
6868 const cfnlogGroup = logGroup . node . defaultChild as CfnLogGroup
Original file line number Diff line number Diff 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" , {
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ export class EpsAssistMeStack extends Stack {
7474 const accessLogBucket = new Bucket ( this , "EpsAssistAccessLogsBucket" , {
7575 encryption : BucketEncryption . KMS ,
7676 encryptionKey : cloudWatchLogsKmsKey ,
77- removalPolicy : RemovalPolicy . RETAIN ,
77+ removalPolicy : RemovalPolicy . DESTROY ,
7878 blockPublicAccess : BlockPublicAccess . BLOCK_ALL ,
7979 versioned : true ,
8080 objectOwnership : ObjectOwnership . BUCKET_OWNER_ENFORCED
@@ -84,7 +84,7 @@ export class EpsAssistMeStack extends Stack {
8484 const kbDocsBucket = new Bucket ( this , "EpsAssistDocsBucket" , {
8585 encryptionKey : cloudWatchLogsKmsKey ,
8686 encryption : BucketEncryption . KMS ,
87- removalPolicy : RemovalPolicy . RETAIN ,
87+ removalPolicy : RemovalPolicy . DESTROY ,
8888 blockPublicAccess : BlockPublicAccess . BLOCK_ALL ,
8989 versioned : true ,
9090 objectOwnership : ObjectOwnership . BUCKET_OWNER_ENFORCED ,
You can’t perform that action at this time.
0 commit comments