Skip to content

Instantly share code, notes, and snippets.

@sblack4
Last active December 7, 2021 20:22
Show Gist options
  • Save sblack4/a43c1352d3ddc84f61af43bf38661beb to your computer and use it in GitHub Desktop.
Save sblack4/a43c1352d3ddc84f61af43bf38661beb to your computer and use it in GitHub Desktop.
Updates a module to whatever is in our template module: https://github.com/rhythmictech/terraform-terraform-template
#!/bin/bash -e
# run with
# git clone https://gist.github.com/a43c1352d3ddc84f61af43bf38661beb.git
# bash ./a43c1352d3ddc84f61af43bf38661beb/update-terraform-module.sh
git clone https://github.com/rhythmictech/terraform-terraform-template.git tmp
rm -rf .github bin
mv tmp/.github .github
mv tmp/bin bin
mv tmp/.pre-commit-config.yaml .pre-commit-config.yaml
mv tmp/.tflint.hcl .tflint.hcl
mv tmp/.yamllint.yml .yamllint.yml
rm -rf tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment