(DEPRECATED) Base template for quickly creating new Serverless Microservices in AWS.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper
src/main
.gitignore
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
serverless.env.yml
serverless.secrets-sample.yml
serverless.yml

README.md

serverless-demo

AWS Lambda and Serverless Framework Demo

Local Development Prerequisites

Install Gradle

brew install gradle

Install NPM and the Serverless CLI tools

brew install node

npm install serverless -g

Set up AWS credentials

Add your AWS credentials to the ~/.aws/credentials file:

[default]
aws_access_key_id = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
aws_secret_access_key = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Set your default AWS region

Add default region to ~/.aws/config file:

[default]
region = us-east-1


Project Settings

  • Rename serverless.secrets-sample.yml to serverless-secrets.yml
  • Update secret values in serverless-secrets.yml

Build and Deploy

Build the project

./gradlew clean build

Deploy to Serverless

serverless deploy