Git Product home page Git Product logo

terraspace-graph-demo's Introduction

Terraspace Demo: Dependency Graphs

BoltOps Badge

Terraspace All Demo Video:

Watch the video

This project demonstrates how Terraspace is able to build the dependency graph and deploy multiple stacks at once. It creates a bunch of random_pet resources with dependencies on each other.

Blog Post: Terraspace All: Deploy Multiple Stacks or Terraform Modules At Once

Learn more:

Setup

git clone https://github.com/boltops-tools/terraspace-graph-demo
cd terraspace-graph-demo
bundle

Graphs

To draw the full dependency graph defined by this project's resources:

terraspace all graph

Produces this:

Note: a3 is a stack/node is not parent and has no children.

To draw a targeted subgraphs:

terraspace all graph a2 b2

Produces this:

The green nodes are the targeted stacks.

Deploy

To deploy all the stacks with their resources:

terraspace all up

Terraspace provides a preview before deploying:

$ terraspace all up
Will run:
   terraspace up a3 # batch 1
   terraspace up c1 # batch 1
   terraspace up c3 # batch 1
   terraspace up e1 # batch 1
   terraspace up b1 # batch 2
   terraspace up b3 # batch 2
   terraspace up d1 # batch 2
   terraspace up a2 # batch 3
   terraspace up c2 # batch 3
   terraspace up b2 # batch 4
   terraspace up a1 # batch 5
Are you sure? (y/N)

To deploy subgraphs, specify the stacks:

$ terraspace all up a2 b2
Will run:
   terraspace up c1 # batch 1
   terraspace up c3 # batch 1
   terraspace up e1 # batch 1
   terraspace up b3 # batch 2
   terraspace up d1 # batch 2
   terraspace up a2 # batch 3
   terraspace up c2 # batch 3
   terraspace up b2 # batch 4
Are you sure? (y/N)

terraspace-graph-demo's People

Contributors

tongueroo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

typeboi

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.