apollo-serverwhen run locallyapollo-server-lambdawhen run on AWS@apollo/federationschema pre-configured@pointblankdev/dynamitefor DynamoDB database clientserverlessfor infrastructure-as-code to AWSjestfor testing with recommended extentions- Github Actions for CI/CD
- Find and replace all instances of
graphql-api-templatewith whatever your want.
- First, setup up your AWS access by installing the AWS CLI tools.
- After that's complete, run
aws configureand input your AWS credentials.
- Sign in to AWS and create a DynamoDB table.
- Pick any table name and set your primary key to
id. - Uncheck "Use default settings" and select
On-demandfor Read/write capacity mode. - Leave all other settings unchanged.
- Rename
example.envto.env. - Set
DYNAMITE_TABLEto the table name you selected for the database.
- Set AWS credentials as secrets in Github.
Environment Variables
- Set
DYNAMITE_TABLEto the table name you selected for the database. - Set
ENVtodev.
IAM Permissions
- Grant the Lambda IAM policy for
dynamodb:*.