The motivation behind this project was to create the underlying infrastructure of a GraphQL API that is easy to extend, uses Cognito as the default authorizer, and the resolvers are connected to lambda functions so that you can have more control over the requests.
- AWS CLI - Install and configure AWS CLI CLI
- SAM CLI - Install the SAM CLI
- Node.js - Install Node.js, including the NPM package management tool.
To build and deploy your application, run the following in your shell:
npm run deploy
or
yarn deploy
The SAM CLI installs dependencies defined in graphql/resolvers/X/package.json
, creates a deployment package, and saves it in the .aws-sam/build
folder.
To remove all the resources associated with your stack, you can run the following:
aws cloudformation delete-stack --stack-name MY_STACK_NAME