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

Provide a way to load example data in your environment

Open pimvernooij opened this issue 4 years ago • 2 comments

When using mach composer to create and manage your development environments, you most likely want to load some example data into the environment, for testing.

Would it be useful to generalise this via mach composer? mach load_exampledata as suggested by @tleguijt ?

pimvernooij avatar Nov 16 '20 10:11 pimvernooij

At the moment, MACH uses the terraform subdir to load the component as Terraform module. We can extend this further by being able to supply the following directories that MACH can utilise:

  • terraform/
  • dashboard/ (azure dashboard configurations)
  • example_data/ (commercetools example data in YAML format)

We could provide a mach load_example_data or mach load example_data (in case we might want to be able to load other types of data?)

tleguijt avatar Nov 16 '20 21:11 tleguijt

If this concept could be extended to content, for example amplience content - that would facilitate spawning new envs in one hit more easily.

Note, a few challenges we hit in other projects around this concept was how to make the seeding run only once, and then how to layer on subsets of the baselining data if you need to turn dev from baseline1 to baseline2

boro2g avatar Sep 29 '22 10:09 boro2g