mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
36 lines
872 B
YAML
36 lines
872 B
YAML
service: service
|
|
|
|
configValidationMode: error
|
|
|
|
provider:
|
|
name: aws
|
|
runtime: nodejs12.x
|
|
versionFunctions: false
|
|
|
|
functions:
|
|
basic:
|
|
handler: core.basic
|
|
events:
|
|
- cognitoUserPool:
|
|
pool: ${self:service} CUP Basic
|
|
trigger: PreSignUp
|
|
existingSimple:
|
|
handler: core.existingSimple
|
|
events:
|
|
- cognitoUserPool:
|
|
pool: ${self:service} CUP Existing Simple
|
|
trigger: PreSignUp
|
|
existing: true
|
|
# testing if two functions share one cognito user pool with multiple configs
|
|
existingMulti:
|
|
handler: core.existingMulti
|
|
events:
|
|
- cognitoUserPool:
|
|
pool: ${self:service} CUP Existing Multi
|
|
trigger: PreSignUp
|
|
existing: true
|
|
- cognitoUserPool:
|
|
pool: ${self:service} CUP Existing Multi
|
|
trigger: PreAuthentication
|
|
existing: true
|