Giter Club home page Giter Club logo

serverless's Introduction

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. For my motivation, please read this blog post

New to AWS CDK?

Pattern Usage

All patterns are available in Typescript and Python so pick your favourite language! Note the Typescript patterns all include unit tests but right now I have not seen a standard python testing approach

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
The CDK CLI is still installed via npm so make sure you have the latest version of node installed or the npx commands will fail. Then you can just run:

  • 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
  • npx cdk synth - generate a cft from the stack to validate your setup
  • npx 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

Architecture




James Beswick Patterns (@jbesw)

This was taken from this Blogpost

Architecture




Eric Johnson Patterns (@edjgeek)

This was taken from this Tweet

Architecture




External Patterns

AWS Examples

Found via this tweet

Architecture

Introduce a fluent way to design cloud native microservices via EventStorming workshop, this is a hands-on workshop. Contains such topics: DDD, Event storming, Specification by example. Including the AWS product : Serverless Lambda , DynamoDB, Fargate, CloudWatch.

Architecture

Sebastian Müller (@sbstjn, @superluminario)

Full-featured example project based on create-react-app with server-side rendering and continuous deployment.

Found via this tweet and this.

Architecture (English)

Architecture

Architecture (German)

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

serverless's People

Contributors

nideveloper avatar cdk-patterns avatar menge101 avatar sbstjn 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.