diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..25ea1d7 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,14 @@ +# EditorConfig is awesome: https://EditorConfig.org + +# top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file +[*] +end_of_line = lf +insert_final_newline = true + +[{*.yml,*.yaml,*.hcl,*.cue}] +indent_style = space +indent_size = 2 +trim_trailing_whitespace = true diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..11d16c9 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,19 @@ +# See https://pre-commit.com for more information +# See https://pre-commit.com/hooks.html for more hooks +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.4.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-yaml + args: ["--allow-multiple-documents"] + - id: check-added-large-files + - repo: https://github.com/antonbabenko/pre-commit-terraform + rev: v1.77.0 # Get the latest from: https://github.com/antonbabenko/pre-commit-terraform/releases + hooks: + - id: terraform_fmt # args: ["--enable require-variable-braces,deprecate-which"] + - id: terraform_tflint + exclude: .* + - id: terragrunt_fmt + - id: terraform_docs diff --git a/.tflint.hcl b/.tflint.hcl new file mode 100644 index 0000000..528bf92 --- /dev/null +++ b/.tflint.hcl @@ -0,0 +1,14 @@ +plugin "aws" { + enabled = true + + version = "0.27.0" + source = "github.com/terraform-linters/tflint-ruleset-aws" +} + +rule "terraform_required_providers" { + enabled = true + + # defaults + source = false + version = true +} diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..d6637e0 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,5 @@ +# Changelog +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).