diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..db137b7 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,9 @@ +repos: +- repo: local + hooks: + - id: terraform_fmt + name: Terraform Format + entry: bash -c 'terraform fmt -recursive >/dev/null' + language: system + pass_filenames: false + stages: [commit] \ No newline at end of file diff --git a/examples/full/network.tf b/examples/full/network.tf index f52f852..e5c52b3 100644 --- a/examples/full/network.tf +++ b/examples/full/network.tf @@ -35,7 +35,7 @@ resource "aws_route_table" "public" { } resource "aws_route" "public_igw" { - route_table_id = aws_route_table.public.id + route_table_id = aws_route_table.public.id destination_cidr_block = "0.0.0.0/0" gateway_id = aws_internet_gateway.gw.id