Coder Social home page Coder Social logo

s-polimetla / cicd-fargate-rds-api-gateway Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 5.0 165 KB

Production ready CI/CD Fargate Application with RDS and API Gateway integration.

Home Page: https://polimetla.medium.com

License: MIT License

Dockerfile 3.13% Java 96.87%
rds-database api-gateway codepipeline aws cicd-pipeline fargate-secrets docker devops

cicd-fargate-rds-api-gateway's Introduction

cicd-fargate-rds-api-gateway

The README.md is different for each branch. Please read the instructions carefully

Please follow the numbering on each branch to track the progress step by step. This branch is step number 3

The workflow for step3 looks like this alt text

Changes from last step 2-rds-fargate-secrets

  1. In the previous step, the API is only reachable through the public facing LoadBalancer without any authentication. In this step, the ELB is mapped to a API Gateway.
  2. api-config.yaml creates Api Gateway configuration such as API Key, Api Domain and a Usage Plan. Custom Domain Name DNS configuration is managed by Route53 before creating this stack.
  3. swagger.yaml has the configuration to create a API deployed on API Gateway.
  4. The API has a custom domain name which is easier to use and maintain than a AWS generated one. One of the parameters required for this stack creation is HostedZoneId which is a alphanumeric value attached to each HostedZone. This can be obtained from Route53 console.
  5. To start using the API with API Gateway, the deployed API and its stage should be added to the Usage Plan using Api Gateway console manually.
  6. The API is now accessible via API Gateway using a valid API key.

Note

The API definition will have the following as mandatory fields for POST requests.

    required:
      - firstName
      - lastName
      - age

This means, any API request which do not fulfill the criteria either by omitting these fields or with inappropriate data types will be filtered out at API gateway without even reaching the Application layer.

If you are starting with the branch directly, here is the order of creation of resources

  1. network-config.yaml
  2. rds-database.yaml twice. One for each environment
  3. api-config.yaml twice. One for each environment
  4. build-pipeline-docker-ecs.yaml

cicd-fargate-rds-api-gateway's People

Contributors

s-polimetla avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 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.