Skip to content

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

Notifications You must be signed in to change notification settings

boltops-tools/terraspace-graph-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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