Seems SST doesn't provide any wrapper on SES, so I...
# help
r
Seems SST doesn't provide any wrapper on SES, so I have to use CDK directly for SES, is it correct? Thanks
t
That's right but what constructs are you creating from CDK?
I found there's not too much you can do
r
Oh, I just want to setup SES to use with cognito user pool, for email verification.
f
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
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.