architect-serverless
api url (staging) https://gpmns9v8mi.execute-api.ap-southeast-1.amazonaws.com
api url (production) https://8oeryyun6f.execute-api.ap-southeast-1.amazonaws.com
- install yarn
- install node (v12+)
- install architect https://github.com/architect/architect
// test api in local
$ yarn run dev
// deploy to aws (staging)
$ yarn run deploy:staging
// deploy to aws (production)
$ yarn run deploy:production
// export sam.json
$ yarn run package
// set environment variables
$ yarn run env
// remove serverless services in aws
$ yarn run destroy