Skip to content

Instantly share code, notes, and snippets.

@adrianhall
Created October 10, 2018 17:30
Show Gist options
  • Save adrianhall/4d41a38c9bc830a0ea8f1d1de01548c7 to your computer and use it in GitHub Desktop.
Save adrianhall/4d41a38c9bc830a0ea8f1d1de01548c7 to your computer and use it in GitHub Desktop.
provider:
name : aws
region : us-east-1
runtime : nodejs8.10
stage : ${opt:stage, 'dev'}
apiname : ${opt:apiname, 'chatql'}_${self:provider.stage}
environment:
GRAPHQL_API : { Fn::GetAtt: [ GraphQlApi, GraphQLUrl ] }
REGION : ${self:provider.region}
functions:
postAuthentication:
handler : cognito.postauth
role : PostAuthenticationRole
events:
- cognitoUserPool:
pool : MyPool
trigger : PostAuthentication
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment