Install dependencies and serverless:
npm i
npm i -g serverless
Local query using query.json
:
serverless invoke local -f graphql -p query.json
Configure AWS credentials for an IAM user with the following permissions:
- TODO
If you use a non-default profile, prefix the command with AWS_PROFILE=your-profile
.
Deploy the API:
serverless deploy
Deploy a custom domain for API gateway:
serverless create_domain