GithubHelp home page GithubHelp logo

terraform-api-gateway-demo's Introduction

Internal Amazon API Gateway with Terraform

Intended Architecture

 Architecture Diagram

Deployment Order

In order to avoid dependency issues it is recommended to execute deployment of resources in the following order:

  1. VPC
  2. Relational Database
  3. DynamoDB
  4. S3
  5. Load Balancers
  6. Code Deploy
  7. ECS Cluster
  8. ECR
  9. API Gateway
  10. Backend Microservice 1
  11. Frontend Microservice
  12. Backend Microservice 2

Note: Relational Database, DynamoDB and S3 are dependent on the microservices used in this specific implementation. Only use them in your infrastructure if your applications need them, else replace with your own infrastructure and skip to Load Balancers .

VPC

Init and apply from:

    cd account/environment/infrastructure/vpc

Relational Database

  • Used by the backend users application to persist data.

Init and apply from:

    cd account/environment/services/rds

DynamoDB

  • Used by the backend products application to persist data

Init and apply from:

    cd account/environment/services/dynamodb

S3 Bucket

  • Used by the backend products application to post and persist images.

Init and apply from:

    cd account/environment/services/s3

Load Balancers

Init and apply from:

    cd account/environment/services/load-balancers

Code Deploy

โ€ข Used to implement a blue green deployment style.

Init and apply from:

    cd account/emvironment/services/code-deploy

ECS Cluster

  • The cluster in which all the services reside.

Init and apply from:

    cd account/emvironment/services/cluster

ECR

  • After applying this step you will need to push your images to the repositories before continuing.

Init and apply from:

    cd account/environment/services/ecr

API Gateway

Init and apply from:

    cd account/environment/services/api-gateway

Backend Users Service

  • The first service to go up in order to resolve dependency issues.

Init and apply from:

    cd account/environment/services/ecs-backend-users

Frontend Service

Init and apply from:

    cd account/environment/services/ecs-frontend

Backend Products Service

Init and apply from:

    cd account/environment/services/ecs-backend-products

terraform-api-gateway-demo's People

Contributors

sophiecosgrove 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.