https://github.com/mikaeelkhalid/aws-cdk-appsync-serverless-boilerplate
This repository contains a boilerplate to kickstart your serverless journey with AWS CDK and AppSync.
https://github.com/mikaeelkhalid/aws-cdk-appsync-serverless-boilerplate
aws aws-appsync aws-cdk aws-dynamodb aws-lambda serverless typescript
Last synced: 3 months ago
JSON representation
This repository contains a boilerplate to kickstart your serverless journey with AWS CDK and AppSync.
- Host: GitHub
- URL: https://github.com/mikaeelkhalid/aws-cdk-appsync-serverless-boilerplate
- Owner: mikaeelkhalid
- Created: 2023-08-01T11:56:13.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-03T13:40:55.000Z (almost 3 years ago)
- Last Synced: 2025-10-09T06:35:05.294Z (9 months ago)
- Topics: aws, aws-appsync, aws-cdk, aws-dynamodb, aws-lambda, serverless, typescript
- Language: TypeScript
- Homepage: https://blog.mikaeels.com/appsync-serverless-application-aws-cdk
- Size: 57.6 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AWS CDK AppSync Serverless Boilerplate
[](https://github.com/mikaeelkhalid)
This repository contains a boilerplate to kickstart your serverless journey with AWS CDK and AppSync.
## Features
- AWS CDK-based infrastructure setup
- AWS AppSync configuration for GraphQL endpoints
- Serverless functions with AWS Lambda, and AWS DynamoDB
- Easy deployment scripts
## Prerequisites
- [Node.js](https://nodejs.org/)
- [AWS CLI](https://aws.amazon.com/cli/)
- [AWS CDK Toolkit](https://docs.aws.amazon.com/cdk/latest/guide/cli.html)
## Getting Started
1. **Clone the repository:**
```bash
git clone https://github.com/mikaeelkhalid/aws-cdk-appsync-serverless-boilerplate.git
cd aws-cdk-appsync-serverless-boilerplate
```
2. **Install dependencies:**
```bash
npm install
```
3. **Deploy to AWS:**
First, you need to bootstrap the AWS environment to use AWS CDK.
```bash
cdk bootstrap
```
Then, deploy the stack.
```bash
cdk deploy
```
## Usage
After deploying, you can use the following queries and mutations in the AWS AppSync console:
### Query
```graphql
query listNotes {
listNotes {
id
name
completed
}
}
```
### Mutation
```graphql
mutation createNote {
createNote(note: { id: "01", name: "Note Name", completed: false }) {
id
name
completed
}
}
```
---
Feel free to adjust or refine as needed!