mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Serverless AWS Documentation
Check out the Getting started guide and the CLI reference for an introduction to Serverless.
Setup and configuration
Please follow these setup instructions to start using AWS Lambda and serverless together
Provider configuration
Following are examples and descriptions of all available AWS specific provider configuration settings.
provider:
name: aws # Set the provider you want to use, in this case AWS
runtime: nodejs4.3 # Runtime used for all functions in this provider
stage: dev # Set the default stage used. Default is dev
region: us-east-1 # Overwrite the default region used. Default is us-east-1
variableSyntax: '\${{([\s\S]+?)}}' # Overwrite the default "${}" variable syntax to be "${{}}" instead. This can be helpful if you want to use "${}" as a string without using it as a variable.
Additional function configuration
functions:
hello:
name: ${self:provider.stage}-lambdaName # Deployed Lambda name
handler: handler.hello # handler set in AWS Lambda
memorySize: 512 # optional, default is 1024
timeout: 10 # optional, default is 6
General Configuration
AWS events
Examples
See the examples folder for all AWS serverless examples
To add examples, fork this repo and submit a pull request