https://serverless-stack.com/ logo
#help
Title
# help
r

ray

04/12/2022, 3:53 PM
Seems SST doesn't provide any wrapper on SES, so I have to use CDK directly for SES, is it correct? Thanks
t

thdxr

04/12/2022, 3:54 PM
That's right but what constructs are you creating from CDK?
I found there's not too much you can do
r

ray

04/12/2022, 4:11 PM
Oh, I just want to setup SES to use with cognito user pool, for email verification.
f

Frank

04/12/2022, 8:00 PM
Hey @ray, r u looking for something like this?
Copy code
new Auth(this, "Auth", {
  cognito: {
    email: cognito.UserPoolEmail.withSES({
      fromEmail: '<mailto:noreply@myawesomeapp.com|noreply@myawesomeapp.com>',
      fromName: 'Awesome App',
      replyTo: '<mailto:support@myawesomeapp.com|support@myawesomeapp.com>',
    })
  },
});
r

ray

04/13/2022, 4:29 PM
Thanks @Frank, this is indeed what I wanted. However, after set it up and configured custom domain for the LINK verification mode, I found I have to use cognito hosted ui anyway. So I think I will have to create my own authentication with JWT. Seems you haven't talked too much about that in the
serverless stack guide
. So hope you can give me some suggestions. Really appreciate that!
Hi @Frank, looks like I can use Lambda triggers to do the customization. Is there any examples for that? Thanks.
2 Views