Built with SAM, AppSync and TypeScript.
This application uses various AWS services and there are costs associated with these services after the Free Tier usage - please see the AWS Pricing page for details.
You are responsible for any AWS costs incurred. No warranty is implied in this example.
In the project root directory, run:
pnpm install
-
Rebuild types defined in GraphQL schema (useful during development)
pnpm run build-schema
-
Build resolvers
pnpm run build-resolvers
-
Build all (including SAM template)
pnpm run build
-
Build resolvers and SAM template
pnpm run build
-
Deploy
sam deploy --guided --capabilities CAPABILITY_AUTO_EXPAND CAPABILITY_IAM
- Create a new user in the Cognito User Pool
- Open AppSync in the AWS Console, login and subscribe to "onEvent"
- Go to EventBridge -> Event buses -> events -> Send events and send a test event
- Go back to AppSync and check the results
Simply run:
sam destroy