From e98b6980f20410a5d59ae279d60a750d43d91732 Mon Sep 17 00:00:00 2001 From: Ethan Paul Date: Fri, 17 May 2024 14:23:44 -0400 Subject: [PATCH] Initial commit --- .gitignore | 16 +++++++++++++ .pre-commit-config.yaml | 52 +++++++++++++++++++++++++++++++++++++++++ README.md | 4 ++++ 3 files changed, 72 insertions(+) create mode 100644 .gitignore create mode 100644 .pre-commit-config.yaml create mode 100644 README.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ceee055 --- /dev/null +++ b/.gitignore @@ -0,0 +1,16 @@ +## Terraform files +.terraform +terraform.tfvars +**.tfstate* + +## IDE files +.idea + +## Mac detritus +*.DS_Store + +# Local python venv +.venv/ + +# Local env files +.env* diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..cdf28fe --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,52 @@ +--- +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.6.0 # Use the ref you want to point at + hooks: + - id: end-of-file-fixer + name: Fix EOF + types: + - text + + - id: trailing-whitespace + name: Fix trailing whitespace + types: + - text + + - id: check-merge-conflict + name: Check merge conflict + types: + - text + + - id: check-yaml + name: Check YAML file syntax + types: + - yaml + +- repo: https://github.com/Yelp/detect-secrets + rev: v1.5.0 + hooks: + - id: detect-secrets + name: Check for committed secrets + types: + - text + +- repo: https://github.com/executablebooks/mdformat + rev: 0.7.17 + hooks: + - id: mdformat + args: + - "--number" + - "--wrap=90" + additional_dependencies: + - mdformat-gfm + +- repo: local + hooks: + - id: terraform-format + name: Enforce terraform formatting + entry: tofu + language: system + args: + - "fmt" + files: '.*\.(tfvars|tf)$' diff --git a/README.md b/README.md new file mode 100644 index 0000000..876e391 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +# terraform-aws-ecs-netbox + +A terraform module for deploying containerized Netbox on AWS Elastic Container Service +(ECS)