A skeleton project that shows how to use the Serverless Framework with Go.
Also see this blog post for more information.
# 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