terraspace
terraspace copied to clipboard
Add instance option to `terraspace all`
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.
Related https://community.boltops.com/t/instance-option-for-terraspace-all-commands/752