Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create stack using glob patterns #2006

Open
marcmodin opened this issue Dec 15, 2024 · 1 comment
Open

Create stack using glob patterns #2006

marcmodin opened this issue Dec 15, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@marcmodin
Copy link

Is your feature request related to a problem? Please describe.
Not exactly a problem, but it would be awesome to streamline the workflow. Making stack creation even smoother would enhance the overall experience when managing multi-region and multi-environment deployments in large teams.

Describe the solution you'd like
It would be cool if terramate create could support glob patterns in the path attribute. For example:

terramate create stacks/prod/network/{eu-north-1,eu-central-1}/ec2 
or 
terramate create live/*/network/eu-north-1/ec2

Describe alternatives you've considered
Creating stacks one at a time for each region and environment commando style, or considering scripting the creation, using Makefiles, or other similar tools.

@marcmodin marcmodin added the enhancement New feature or request label Dec 15, 2024
@i4ki
Copy link
Contributor

i4ki commented Jan 6, 2025

Hi @marcmodin

First of all, happy new year :-)

For both options you proposed, the only missing functionality is allowing multiple stack paths in the terramate create.
The problem is that --id, --name and --description are meant to be set to an individual stack, so it's meaningless if providing multiple paths.
Maybe only if we error if those flags are provided together with multiple stack paths?

What do you think? @soerenmartius @mariux @snakster

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants