Terraform customizable tool for defining your standards, styles, and naming conventions By the moment is only supported to work as a GitHub action (linux).
wget https://github.com/josdagaro/tfsuit/releases/download/vx.y.z/tfsuit
mv tfsuit /usr/local/bin
chmod a+x /usr/local/bin/tfsuit
# ...
tfsuit --dir="/my/project/path" --config-json-path="/my/project/path/tfsuit.json" -f --docs-link="foobar.com"
jobs:
tfsuit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run tfsuit
id: tfsuit
uses: josdagaro/tfsuit@v0
with:
dir: "."
config_json_path: tfsuit.json
fail_on_not_compliant: "true"
{
"vars": {
"naming_conventions": {
"match_pattern": "[a-z0-9_]+_(virginia|ohio|california|oregon)\\b",
"exact": null,
"ignore": {
"match_pattern": null,
"exact": [
"route53_domain"
]
}
}
},
"outputs": {
"naming_conventions": {
"match_pattern": "[a-z0-9_]+_(virginia|ohio|california|oregon)\\b",
"exact": null,
"ignore": {
"match_pattern": null,
"exact": []
}
}
},
"modules": {
"naming_conventions": {
"match_pattern": "[a-z0-9_]+_(virginia|ohio|california|oregon)\\b",
"exact": null,
"ignore": {
"match_pattern": null,
"exact": []
}
}
},
"resources": {
"naming_conventions": {
"match_pattern": "[a-z0-9_]+_(virginia|ohio|california|oregon)\\b",
"exact": null,
"ignore": null,
"remove_double_quotes": true
}
}
}