apply_module_everywhere 352 B

1234567891011121314
  1. #! /bin/bash
  2. #
  3. # Runs an init and apply in all copies of a module
  4. #
  5. # TODO: Would be really nice if this did some input validation, and if you
  6. # could specify 'local' or not.
  7. for i in $( find . -type d -name "$1" -print | egrep -v "000-skeleton" ); do
  8. echo Processing $i...
  9. pushd $i
  10. terragrunt-local init && terragrunt-local apply
  11. popd
  12. done