Skip to content

Commit 91a3c21

Browse files
authored
Update cdk-stack.ts
Updated deletion property for cognito
1 parent 93aa84d commit 91a3c21

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cognito-lambda-dynamodb/cdk/lib/cdk-stack.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ export class CdkStack extends cdk.Stack {
5858
this.userPool = new Cognito.UserPool(this, "UserPool", {
5959
userPoolName: "USER-POOL",
6060
selfSignUpEnabled: true,
61+
deletionProtection: false,
62+
removalPolicy: cdk.RemovalPolicy.DESTROY,
6163
autoVerify: {
6264
email: true,
6365
},

0 commit comments

Comments
 (0)