Photo by Markus Spiske on Unsplash
  1. Browse the following link: Select Get Started Now to start creating a new function:

service:  name: myService  awsKmsKeyArn: arn:aws:kms:us-east-1:XXXXXX:key/some-hash frameworkVersion: ">=1.0.0 <2.0.0" provider:  name: aws  runtime: nodejs6.10  stage: dev  region: us-east-1  stackName: custom-stack-name  apiName: custom-api-name  profile: production  memorySize: 512  timeout: 10  logRetentionInDays: 14  deploymentBucket:  name: com.serverless.${self:provider.region}.deploys  serverSideEncryption: AES256  role: arn:aws:iam::XXXXXX:role/role  cfnRole: arn:aws:iam::XXXXXX:role/role  versionFunctions: false  environment:  serviceEnvVar: 123456789  endpointType: regional  apiKeys:  - myFirstKey  - ${opt:stage}-myFirstKey  - ${env:MY_API_KEY}  apiGateway…

#Development Workflow

  1. Write your functions
  2. Use serverless deploy only when you've made changes to serverless.yml and in CI/CD systems.
  3. Use serverless deploy function -f myFunction to rapidly deploy changes when you are working on a specific AWS Lambda Function.
  4. Use serverless invoke -f myFunction -l to test your AWS Lambda Functions on AWS.
  5. Open up a separate tab in your console and stream logs in there via serverless logs -f myFunction -t.
  6. Write tests to run locally.

#Using stages

  • At the very least, use a dev and production stage.
  • Use different AWS accounts for stages.
  • In larger…

#Installing Plugins

#The Default IAM Role

serverless package
serverless package --package my-artifacts

#Package Configuration


yamlKeyXYZ: ${variableSource} otherYamlKey: ${variableSource, defaultValue}

#Current variable sources:

#Recursively reference properties

  • The Serverless Architecture is an integration of separate, distributed services, which must be tested both independently, and together.
  • The Serverless Architecture is dependent on internet/cloud services, which are hard to emulate locally.
  • The Serverless Architecture can feature event-driven, asynchronous workflows, which are hard to emulate entirely.
  • Write your business logic so that it is separate…

#Deploy All

serverless deploy

#How It Works

Developer world

Code , Test , Deploy

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store