mach-composer-cli
mach-composer-cli copied to clipboard
Support for terraform ``moved {}`` blocks
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?
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.