boltops-tools / terraspace

Terraspace: The Terraform Framework
https://terraspace.cloud
Apache License 2.0
678 stars 46 forks source link

Add terraspace all for all commands #275

Open LvffY opened 2 years ago

LvffY commented 2 years ago

Summary

It would be great to have every commands possible through the terraspace all commands. It would allow people to easily run all of their wanted commands on all their stacks/modules without carrying about if they are provided or not in the terraspace all.

Motivation

In my case, we sometimes need to run terraspace state pull on all our stacks. I was surprised when I found that this was not possible.

For anyone falling here, I've come to the following one-liner : for stack in app/stacks/*; do terraspace state pull $(basename $stack); done

But this is not very convenient and could be error-prone to do so for all other commands.

Drawbacks

I don't think of any drawback here ...