Skip to content

Open-source hands-on guide to build real production ready rest api in Serverless manner

License

Notifications You must be signed in to change notification settings

EPAM-JS-Competency-center/aws-rest-api-serverless-lambda

Repository files navigation

aws-rest-api-serverless-lambda

Open-source hands-on guide to build real production ready rest api in Serverless manner

Flow

  1. Create Id and Key on AWS console in "Access keys (access key ID and secret access key)" tab.
  2. See ./sls/profiles in repository to set or get available profiles names.
  3. Create or update ~/.aws/config and ~/.aws/credentials on your machine to setup profiles in both files which you got on 2nd step.
[localawsenv]
aws_access_key_id=YOUR_ID
aws_secret_access_key=YOUR_KEY
  1. Use alias for your profile dev01, dev02 etc. for ENV variable.
  2. After deploy you can check your api services and test endpoints.

Build

ENV=dev0x yarn build

Deploy

If build is packaged: ENV=dev0x yarn deploy-package

Deploy entirely: ENV=dev0x yarn deploy

To specify custom profile: ENV=dev0x PROFILE=local yarn deploy

To specify another region ENV=dev0x PROFILE=local REGION=us-west-2 yarn deploy

About

Open-source hands-on guide to build real production ready rest api in Serverless manner

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published