mach-composer / mach-composer-cli

MACH composer is an orchestration tool for modern MACH ecosystems, powered by Terraform infrastructure-as-code underneath.
https://docs.machcomposer.io
MIT License
47 stars 10 forks source link

feat: removed reliance on terraform state for config hashes #384

Closed demeyerthom closed 4 months ago

demeyerthom commented 4 months ago

Removed storing the component config hash in terraform state, and instead store it in a .mach/hashes.json file.

Because reading state requires a terraform init for every component before actually checking for changes the actual apply process is very slow. By storing the hashes into a file on disk we can speed up the process enormously as we can now skip many of the inits up front.