Giter Club home page Giter Club logo

cdk-template's Introduction

CDK template application

This repository hosts a CDK project that provison a multi-stage AWS infrastructure composed of a VPC, a kubrnetes cluster and an elasticsearch cluster.

Learn more about this project setup by reading this article.

Dev tools:

  • aws cli
  • aws account
  • cdk cli
  • python3

Stage bootstrapping

Before trying to deploy a stage, go through these steps:

  • Create your stage config file under config dir. Then update its content according to your context (account id, cluster size, ...)

  • Allow ES AWS service to access your vpc resources by running this command:

aws iam create-service-linked-role --aws-service-name es.amazonaws.com
  • Bootstrap the cdk toolkit. This step is needed for the ComputeStack as we are using assets.
make bootstrapp-cdk-toolkit
  • Create a python virualenv and install dependencies using this command:
make local-venv
source .venv/bin/activate
make install-dependencies

That's it! Now you are ready to provision your stage.

Stage lifecycle

  • make diff STAGE=pro display cdk diff of all stacks of the pro stage
  • make deploy STAGE=dev STACKS=NetworkStack synthesize cloudformation template then deploy the NetworkStack to the dev stage
  • make destroy destroy the 3 stacks of the dev stage

cdk-template's People

Contributors

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