Skip to content

Use commit-all when using template

Elliott Street requested to merge elliott/commit-all into master

Allows all files within an infrastructure template folder to be added to infrastructure-live. This breaks compatibility with existing deploy scripts as the template is now a folder instead of a single file.

Required changes to updated folders:

  • Files named template.hcl should be renamed to terragrunt.hcl.
  • The TEMPLATE_PATH (current default value .infrastructure/template.hcl should remove the filename and change to .infrastructure/.) This can be changed in a new template version to avoid specifying in every project.
  • The DEPLOY_IMAGE_REF must be 0.0.7 or greater, as the mo script is no longer downloaded as part of the deploy script.

Example of this change running:

Commit in simple-greeter adds a new change to the sidecar.yaml: https://git.iwoca.co.uk/iwoca/simple-greeter/-/commit/c5413c9382f9550a7218add8537663132b846798

Result in infrastructure-live: https://git.iwoca.co.uk/gruntwork/infrastructure-live/-/commit/18bf5d02a701faf9a7c8faaf36b82be69b53a5ca

Edited by Elliott Street

Merge request reports