Code Monkey home page Code Monkey logo

cdk-patterns-serverless's Introduction

AWS CDK Serverless Architecture Patterns

This is intended to be a repo containing all of the official AWS Serverless architecture patterns built with CDK for developers to use.

Follow @CdkPatterns for live discussion / new pattern announcements. I plan to add a new pattern weekly so check back regularly!

Note, this is maintained by @nideveloper not AWS

New to AWS CDK?

Pattern Usage

TypeScript

All Patterns (unless otherwise stated in their readme) should support the same commands so you can just run:

  • git clone https://github.com/cdk-patterns/serverless.git
  • cd {pattern-name}/typescript
  • npm i - install the dependencies
  • npm run build - build the project
  • npm run test - run the unit tests
  • npm run deploy - deploy the pattern into your AWS account*

* Note this requires you to be using cloud9 or have ran aws configure to setup your local credentials

Python

  • npm install -g aws-cdk
  • git clone https://github.com/cdk-patterns/serverless.git
  • cd {pattern-name}/python
  • python -m venv .env - Create a virtual env
  • source .env/bin/activate - Activate the virtual env
  • pip install -r requirements.txt - Install the dependencies
  • cdk synth - generate a cft from the stack to validate your setup
  • cdk deploy - deploy the pattern into your AWS account*

* Note this requires you to be using cloud9 or have ran aws configure to setup your local credentials

Patterns

Matt Coulter Patterns (@nideveloper)

Single Page Application S3 Website Deploy

These are built using https://www.npmjs.com/package/cdk-spa-deploy

Architecture




Jeremy Daly Patterns (@jeremy_daly)

These patterns are from https://www.jeremydaly.com/serverless-microservice-patterns-for-aws/

Architecture

Architecture

Architecture




Eric Johnson Patterns (@edjgeek)

This was taken from this Tweet

Architecture




External Patterns

AWS Examples

Found via this tweet

Architecture

Sebastian Müller (@sbstjn)

Found via this tweet

Architecture

Contributing

I hope for this to be something the whole cdk community contributes to so feel free to fork this repo and open up a pull request. For full details see our Contributing Guidelines

cdk-patterns-serverless's People

Contributors

cdk-patterns avatar menge101 avatar nideveloper avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.