Muhammad Ali
09/25/2021, 2:33 AMChad (cysense)
09/25/2021, 3:36 AMconst PreSignupTrigger = new lambda.NodejsFunction(this, 'PreSignUpTrigger', {
entry: 'tempNodeJSFunction/index.ts'
});
this.userPool = new cognito.UserPool(this, 'UserPool', {
selfSignUpEnabled: true,
removalPolicy: cdk.RemovalPolicy.DESTROY, // TODO remove for production
signInAliases: {
email: true,
username: false
},
autoVerify: {
email: true
},
lambdaTriggers: {
preSignUp: PreSignupTrigger
}
});
Chad (cysense)
09/25/2021, 3:37 AMpostConfirmation
Muhammad Ali
09/28/2021, 3:32 AMsrc/lambda/*
. Should i be putting this lambda there too?
2. I am using SST cli to deploy to aws, for this cdk lambda, how would the deployment work?Chad (cysense)
09/28/2021, 3:48 AMsrc/lambda/*
and point entry: src/lambda/YOURLMABDA'
at your lambda.
2. Should just be a normal SST deploy. You probably will not be able do local simulation as the lambda needs to receive events from cognito but a deploy should be fine.Joe Kendal
09/29/2021, 3:24 PMChad (cysense)
09/30/2021, 12:52 AM