Serverless Framework

Serverless Framework

TODO

  1. https://www.serverless.com/guides/what-is-serverless
  2. https://www.serverless.com/framework/docs/getting-started
  3. https://rieckpil.de/aws-lambda-with-serverless-java-and-maven-thumbnail-generator/
  4. https://rieckpil.de/java-aws-lambda-with-spring-cloud-function/

Advantages

The Serverless framework takes care to create all required AWS resources for our AWS applications. We don’t have to fiddle around with long CloudFormation YAML templates at all.

Installation

We install the Serverless CLI via npm:

npm install -g serverless

Configuration

Once we have an access key and secret for an AWS user, we can store these credentials in a dedicated profile:

Configuring the Serverless AWS credentialsShell

serverless config credentials --provider aws --key  ABC --secret XYZ --profile my-aws-username