Serverless Workshop
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
1-Installation
2-Create
3-Deploy
4-Logging_Debug
5-Events_Triggers
6-Variables
7-PermissionsAndAuth
8-Rollback
9-ExtendingYourApp
code
images
.gitignore
Readme.md

Readme.md

Serverless Workshop

This Workshop is designed to teach yo the basics of how to use the serverless framework to build and deploy applications. Its not a lesson in coding in JavaScript / nodeJS by any means so please feel free to build on these examples and improve along the way to aid your learning. Also if you spot any mistakes or have enhancements please submit a pull request via GitHub.

The workshop

During this workshop we are going to build a simple application, we'll start with hello world and move on to develop an application that resizes images when they are uploaded to S3. By the end of the exercises you should be confident in using the serverless framework to create new, deploy and debug functions that are running in AWS Lambda.

We'll build:

  • A hello world function with json and html responses
  • A image resize function linked to S3
  • A upload function to add images to the system
  • A list images in S3 function
  • A view image function

We'll also learn about:

  • Event data
  • The AWS API Gateway
  • API Keys for private functions

Requirements

You need to have installed and working knowledge of:

  • An AWS account (and your AWS keys setup on your machine see: https://aws.amazon.com/cli/)
  • also set up your default .aws profile
  • Git
  • A Giithub account would be an advantage
  • NodeJS
  • NPM

Conventions

Code and output will be highlighted in the following way:

some command to run
....
or some output

If a file or directory is referenced in the documentation it will be highlighted inline like so:

some generic text about file xyz.zip that you need to look at.

Important notes will be in bold like so:

Note: This is an important note

Clean up

Once you've finished this Workshop to delete all the resources created run:

serverless remove

from your code directory. This will prevent you incurring future costs.

Further Reading


Ric Harvey - ngineered.co.uk 2016