项目作者: s4nt14go

项目描述 :
Infra Backend Severless Stack tutorial
高级语言: JavaScript
项目地址: git://github.com/s4nt14go/serverless-stack-ext-resources.git
创建时间: 2020-10-12T09:55:30Z
项目社区:https://github.com/s4nt14go/serverless-stack-ext-resources

开源协议:MIT License

下载


Backend SST guide

Seed Status

This implementation is based on an SST guide extended version which included chapters “Best Practices” and “Extra Credit”.

Actually the backend consists of:

  • Infrastructure (this repo): Deploys S3, DynamoDB & Cognito, it doesn’t change a lot and can be shared between several Serverless API stages. It uses AWS CDK with SST for deployment.
  • API: Deploys API Gateway and Lambdas, most of the development iterations are done on this repo. It uses Serverless Framework for deployment.

For the frontend and the demo link check this repo

Instructions:

Node version 14 used for development, using nvm you can:

  1. # set Node 14 in current terminal
  2. nvm use 14
  3. # set Node 14 as default (new terminals will use 14)
  4. nvm alias default 14
  • Install dependencies: npm install
  • Deploy infrastructure: npm run deploy

As these resources are used by API, first delete that API and you can do the cleanup: npm run delete

SEED walkthrough

SEED is used for the deployment pipeline, here follows a walkthrough of the configuration steps


deploy phases



deploy phases

We use an account for dev and a different one for prod:


deploy phases



deploy phases



deploy phases



deploy phases



deploy phases



deploy phases