mach-composer-cli icon indicating copy to clipboard operation
mach-composer-cli copied to clipboard

Support for terraform ``moved {}`` blocks

Open mikedingjan opened this issue 1 year ago • 1 comments

Since the site.tf is generated by mach-composer-cli moving a component is quite a hassle, you need to generate the tf files, add your moved {} blocks before doing an apply.

Support for moving / renaming components would be nice, can be in the form of a command of with some extra yaml configuration maybe?

mikedingjan avatar Sep 14 '23 10:09 mikedingjan

A solution here would be to add a command to the CLI where a user can rename an existing component to a new component. We can change the yaml file accordingly, and store the old and new names in the terraform state so we can recreate the moved blocks there.

demeyerthom avatar Nov 20 '23 12:11 demeyerthom