An invisible server for the masses
This tutorial aims to have you ending up with a serverless app running in the Amazon cloud.
It’s assumed that you’re already familiar with the Serverless framework
Multitenancy “not only allowed for higher gross margins, it made it viable to serve small and medium businesses with world-class software — at a profit.”
Create an Amazon Web Services account.
Create a “serverless-admin” user
This is used to do work under an AWS account Administrator Access policy.
- Login to your AWS account
- Go to the Identity & Access Management (IAM) page
- Click on Users
- Click on Create New Users
- Enter serverless-admin and click Create
- Click on Download Credentials to download the .csv file with the AWS credentials
- Click Users on the left
- Click on the serverless-admin user
- Go to the Permissions tab
- Click Attach Policy and select the Administrator Access
- Click on Attach Policy
Install AWS CLI per https://docs.aws.amazon.com/cli/latest/userguide/installing.html
pip install --upgrade --user awscli </pre>
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.
aws --version </pre>
pip uninstall awscli </pre>
Obtain AWS Access Key ID
- video: Advanced Coding Session and slides (API Gateway authentication use cases, Amazon Kinesis Streams, Amazon Cognito and AWS CloudFormation) by Alex Casalboni of CloudAcademy. repo
More on Serverless
This is one of a series on Serverless computing
- Serverless introduction
- AWS Lambda
- AWS Lambda
- AWS Lambda Serverless
- Cloud regions
- Cloud services comparisons