Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

mlafeldt/serverless-skeleton

Repository files navigation

Serverless Skeleton

CircleCI

A skeleton project that shows how to use the Serverless Framework with Go.

Also see this blog post for more information.

Usage

# Set AWS credentials and region
$ export AWS_ACCESS_KEY_ID=...
$ export AWS_SECRET_ACCESS_KEY=...
$ export AWS_REGION=...

# Deploy the Serverless service to staging
$ make staging

# Deploy the service to production
$ make production

# Build, test, or deploy a single function from the service (in staging).
# Note that the Makefile will auto-discover functions in the source tree.
$ make build-hello
$ make test-hello
$ make deploy-hello

# Show logs of a deployed function
$ make logs-hello

# Invoke a deployed function
$ serverless invoke --function hello

# Print staging endpoint URL
$ make url

# Remove the service and all AWS resources from staging
$ make destroy

# To operate in production instead of staging
$ make ... ENV=production
$ serverless ... --stage production

About

A Serverless skeleton project using Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published