terraspace icon indicating copy to clipboard operation
terraspace copied to clipboard

Add instance option to `terraspace all`

Open IceBear2k opened this issue 3 years ago • 1 comments

Summary

Add --instance=INSTANCE option to terraspace all - currently this useful feature is only available when using individual stack deployments.

Motivation

The instance option is especially useful e.g. for pull requests. My usage uses the current commit ID via CI as instance and name resources accordingly. Currently I need to independently up all stacks individually, because I can't leverage this feature with terraspace all.

cluster_name = "cluster-<%= expansion(':ENV') %><%= options[:instance] ? '-' + options[:instance] : nil %>"

Guide-level explanation

https://terraspace.cloud/docs/tfvars/instance-option/

Reference-level explanation

https://terraspace.cloud/docs/tfvars/instance-option/

Drawbacks

None.

Unresolved Questions

None.

IceBear2k avatar Jul 09 '21 12:07 IceBear2k

Related https://community.boltops.com/t/instance-option-for-terraspace-all-commands/752

tongueroo avatar Feb 17 '22 04:02 tongueroo