Skip to content

mikaeelkhalid/aws-cdk-appsync-serverless-boilerplate

Repository files navigation

AWS CDK AppSync Serverless Boilerplate

Mikaeel Khalid

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

Getting Started

  1. Clone the repository:

    git clone https://github.com/mikaeelkhalid/aws-cdk-appsync-serverless-boilerplate.git
    cd aws-cdk-appsync-serverless-boilerplate
  2. Install dependencies:

    npm install
  3. Deploy to AWS:

    First, you need to bootstrap the AWS environment to use AWS CDK.

    cdk bootstrap

    Then, deploy the stack.

    cdk deploy

Usage

After deploying, you can use the following queries and mutations in the AWS AppSync console:

Query

query listNotes {
  listNotes {
    id
    name
    completed
  }
}

Mutation

mutation createNote {
  createNote(note: { id: "01", name: "Note Name", completed: false }) {
    id
    name
    completed
  }
}

Feel free to adjust or refine as needed!

About

This repository contains a boilerplate to kickstart your serverless journey with AWS CDK and AppSync.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published