Skip to content
seed

Using Serverless

To begin a new serverless application, install the serverless framework and run serverless.

sls is an alias for serverless, short and convenient

This will setup a basic API skeleton for you given the selections you provide.

  • You need to have a provider configured for your AWS account, or (less secure) use AWS access credentials.
  • Whether you're using Node or Python, it's often best to use the AWS SDK, which needs to be installed in the project itself.
  • You can set environment variables in AWS Lambda via serverless.yml

Steps to initialize functions on an API include:

  • Define it in the serverless.yml file
  • Create the function in code
  • If required, hook the function into the provider details, such as is required for DynamoDB interaction with Lambda