You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
One convenient use-case for Clone feature is to promote environment stack, e.g. staging -> prod, but currently it's not possible due to one-time nature of terramate clone.
Describe the solution you'd like
A useful improvement would be a --sync or --destructive flag that will allow to run terramate clone on existing folders and synhcronize everything, but keeping stack.id field intact.
Describe alternatives you've considered
I've been using a custom script that did the following:
Parse the stack.id field, store in a variable
Remove existing target directory
Run terramate clone
Set stack.id field
Additional context
It might be wise to think about additional field that would be preferable to store, e.g. stack.description or stack.name, but I will leave this to maintainers.
P.S. Thank you for your great work.
The text was updated successfully, but these errors were encountered:
@i4ki Currently terramate clone can be executed if the target folder does not exist, so it copies the source stack and it's nested stacks and generates new IDs.
Now, the requested feature should allow to execute terraform clone even if the target folder exists, and, naturally, you would want for the current target stack IDs to be preserved, while all other content is overwritten with the contents of the source stack.
Is your feature request related to a problem? Please describe.
One convenient use-case for Clone feature is to promote environment stack, e.g.
staging
->prod
, but currently it's not possible due to one-time nature ofterramate clone
.Describe the solution you'd like
A useful improvement would be a
--sync
or--destructive
flag that will allow to runterramate clone
on existing folders and synhcronize everything, but keepingstack.id
field intact.Describe alternatives you've considered
I've been using a custom script that did the following:
stack.id
field, store in a variableterramate clone
stack.id
fieldAdditional context
It might be wise to think about additional field that would be preferable to store, e.g.
stack.description
orstack.name
, but I will leave this to maintainers.P.S. Thank you for your great work.
The text was updated successfully, but these errors were encountered: