An implementation of the Serverless Stack demo app.
Required;
- AWS credentials
npm install -g serverless
> yarn
> sls deploy # alternatively, sls deploy -r us-west-2 -s canary
To test the Cognito/API Gateway integration, create a cognito user as shown here, and run apig-test.js
with the details of the created user. (edit userDetails
)
> yarn
> yarn start
sls invoke local -f create --path event.json
sls invoke local -f list --path event.json
sls deploy function -f delete
- Every time a different stage (i.e. -s canary) is deployed, the
output.json
is overwritten with the latest stack output. Be mindful of what resources the client app is using. Either use the AWS console or dosls remove -s somestage
to clean stale deployments.