Skip to content

Instantly share code, notes, and snippets.

@alexcasalboni
Last active February 19, 2019 22:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexcasalboni/c4be6d2cd152f119bd69922578bf40bc to your computer and use it in GitHub Desktop.
Save alexcasalboni/c4be6d2cd152f119bd69922578bf40bc to your computer and use it in GitHub Desktop.
Amazon Cognito User Pools - AWS Lambda hook example (YAML)
AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'
Resources:
MyFunction:
Type: 'AWS::Serverless::Function'
Properties:
Handler: index.handler
# ...
# all the other properties here
# ...
MyUserPool:
Type: AWS::Cognito::UserPool
Properties:
UserPoolName: my-user-pool-name
# ...
# all the other properties here
# ...
LambdaConfig:
CustomMessage: !GetAtt MyFunction.Arn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment