Skip to content

boltops-tools/terraspace-graph-demo

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Feb 22, 2022
Sep 18, 2020
Sep 18, 2020
Sep 18, 2020
Oct 1, 2020
Sep 18, 2020

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)

About

Demonstrates how Terraspace is able to build the dependency graph and deploy multiple stacks at once

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published