Wilson Mar bio photo

Wilson Mar

Hello. Hire me!

Email me Calendar Skype call 310 320-7878

LinkedIn Twitter Gitter Google+ Instagram Youtube

Github Stackoverflow Pinterest

An invisible server for the masses


Overview

This tutorial aims to have you ending up with a serverless app running in the Amazon cloud.

This is a follow-up to my notes on the ecosystem around the Serverless computing concept.

Permissions for serverless-admin

  1. Create an Amazon Web Services account. See my tutorial on Amazon on-ramp.

    Create a “serverless-admin” user

    This is used to do work under an AWS account Administrator Access policy.

  2. Login to your AWS account
  3. Go to the Identity & Access Management (IAM) page
  4. Click on Users
  5. Click on Create New Users or edit an existing user.
  6. Enter serverless-admin and click Create
  7. Click on Download Credentials to download the .csv file with the AWS credentials
  8. Click Users on the left
  9. Click on the serverless-admin user
  10. Go to the Permissions tab
  11. Click Attach Policy and select the Administrator Access
  12. Click on Attach Policy

Python

  1. Install Python. See my tutorial on Python interpreter installation on Macs.

  2. Install AWS CLI per https://docs.aws.amazon.com/cli/latest/userguide/installing.html

    pip install --upgrade --user awscli
    

    The --upgrade option tells pip to upgrade any requirements that are already installed.

    The --user option tells pip to install the program to a subdirectory of your user directory to avoid modifying libraries used by your operating sytem.

  3. Verify:

    aws --version
    
  4. To uninstall:

    pip uninstall awscli
    
  5. Obtain AWS Access Key ID

    https://github.com/pmuens/serverless-book/blob/master/04-setup/02-cloud-provider-setup.md

    aws configure

Example of processing an S3 image

The Qwiklab Introduction to AWS Lambda

  1. Login to

Lambda CLI

https://blog.symphonia.io/learning-lambda-part-5-743d8a99db53

Resources

Twitter

@AWSLambda

#AWSLambda

@lambda_conf

@lambdatips

More on Serverless

This is one of a series on Serverless computing

More on Clouds

This is one of a series on Cloud computing