mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
35 lines
650 B
YAML
35 lines
650 B
YAML
service: service
|
|
|
|
configValidationMode: error
|
|
frameworkVersion: '*'
|
|
|
|
provider:
|
|
name: aws
|
|
runtime: nodejs16.x
|
|
logRetentionInDays: 14
|
|
|
|
functions:
|
|
foo:
|
|
handler: index.handler
|
|
# provisionedConcurrency: 1 # Increases significantly test time
|
|
events:
|
|
- httpApi:
|
|
method: GET
|
|
path: /foo
|
|
- httpApi:
|
|
method: POST
|
|
path: /some-post
|
|
|
|
other:
|
|
handler: index.handler
|
|
events:
|
|
- httpApi:
|
|
method: get
|
|
path: /bar/{marko}
|
|
|
|
simpleCustomAuthorizer:
|
|
handler: authorizers.simpleAuthorizer
|
|
|
|
standardCustomAuthorizer:
|
|
handler: authorizers.standardAuthorizer
|