Member-only story
Amazon Cognito automation with CloudFormation is kind of tricky. Here’s a quick example …
This isn’t a Cognito tutorial — but I’m happy to write one up at a later date. Instead, I wanted to share a clear example of an Amazon Cognito CloudFormation template. It took me a little time to figure out so I thought it might help:
Required Resources
There’s only really two required Resources:
AWS::Cognito::UserPoolAWS::Cognito::UserPoolClient
The UserPool
resource creates your managed Cognito directory. You just need one of these per Cognito deployment. The UserPoolClient
(sometimes referred to as an AppClient) represents a logical grouping of permissions for your users. You can create a UserPoolClient
for each application or organization you’re managing.
Optional Resources
Cognito has a very cool feature called the Hosted UI. The Hosted UI provides all of the front end user experience needed to manage a user’s life cycle (sign up, sign in, password…