Introduction to the

Serverless Framework

About Me

1st Career

About Me

2nd Career

About our group

Vendor Neutral

1st Tuesday of the month

(except January 2019: is 2nd Tuesday)

5:30pm - 8:30pm

 

Daughtery Business Solutions
11th Floor, Room MPR 2
Three City Place, Creve Coeur, MO

 

Free and open to the public!

https://www.meetup.com/stl-serverless/events/254589340/

A look ahead...

  • February 2019

    • Exploring AWS Lambda Event Sources

  • March 2019

    • Logging, Monitoring and Tracing

  • April 2019

    • Google Cloud Platform

  • ​May 2019

    • ​Build a 100% serverless CRUD app

Speakers Wanted

Introduction to the Serverless Framework

Presented by: Jared Short,

Head of Developer Relations and Experience at Serverless, Inc.

About Jared Short

@shortjared

 

  • Head of Developer Relations and Experience at Serverless, Inc., @goserverless
  • Based in Washington, DC.
  • Strong background in and building, operating and maintaining serverless and event-driven systems in his previous role at Trek10, a serverless first AWS partner

Practice with Serverless

Clone this repo:

https://github.com/stlserverless/go_serverless_lab_1

ReadMe too small to read below...

# go_serverless_lab_1

Setup - A one-time good deal :-)

## Step 0. Setup AWS user (unless you want to use existing admin user or one with the needed permissions)
See https://serverless.com/framework/docs/providers/aws/guide/credentials/

### Create Access Keys with custom policy
See this gist: https://gist.github.com/ServerlessBot/7618156b8671840a539f405dea2704c8

### Save your API and secret!

### Install Amazon CLI
Windows: https://docs.aws.amazon.com/cli/latest/userguide/install-windows.html

Mac: https://docs.aws.amazon.com/cli/latest/userguide/install-macos.html

General: https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html

I added my keys to a new profile named "serverless-agent"

(Note: Where you see `$ serverless`, you can use `$ sls` instead as a shorthand.)

### Configure serverless to use these keys and secret
`$serverless config credentials --provider aws --key XYZ --secret abcd1234 --profile serverless-agent`

## Step 1. Install serverless globally
`$ npm install serverless -g`

## Step 2. Login to your serverless account
`$ serverless login`

## Step 3. Create a serverless function
`$ serverless create --template hello-world`

## Step 3b. Add serverless configuration
`$serverless config credentials --provider aws --key XYZ --secret abcd1234 --profile serverless-agent`

## Step 4. deploy to cloud provider
`$ serverless deploy`

## Your function is deployed. Let's invoke it:
`$serverless invoke -f hello`

https://github.com/stlserverless/go_serverless_lab_1

Resources

  • https://serverless.com: @goserverless
  • Jared Short: @shortjared
  • https://aws.amazon.com/serverless/
  • https://azure.microsoft.com/en-us/overview/serverless-computing/
  • https://cloud.google.com/serverless/
  • Me
    • jackfrosch@stlserverless.com
    • LinkedIn: in/jackfrosch
    • Twitter @jackfrosch

Questions?

Introduction to Serverless Framework

By Jack Frosch

Introduction to Serverless Framework

  • 1,678