Hello friends 👋 a casual question about cognito + SES:
I'm trying to automate enabling SES messaging for my Cognito User Pools, and after googling and searching i've come to the conclusion that there is no easy one-liner solution.
In general, my sst/cdk steps to achieve this look something like this:
1. create sst.StaticSite with a custom domain hosted on Route53,
2. create cognito user pool using sst.Auth,
3. create a verified domain identity in SES with a use of AwsCustomResource + create cname records in Route53 so the identity can be verified,
4. switch to SES in my cognito user pool using CustomResource lambda
What do you think of this approach? The actual solution are steps 3 and 4, where I wrote some custom cdk/sdk code to enable SES for my user pool.
Do you think it could be solved in a simpler way?