Skip to content

Commit 1825c40

Browse files
committed
Use terraform fmt
1 parent 93d09e7 commit 1825c40

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ repos:
22
- repo: git://github.com/antonbabenko/pre-commit-terraform
33
rev: v1.45.0
44
hooks:
5+
- id: terraform_fmt
56
- id: terraform_validate
67
- id: terraform_docs
78
args: ["--args=--sort-by-required"]

modules/route-table/main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ resource "aws_route_table" "this" {
1616

1717
resource "aws_route" "ipv4" {
1818
for_each = {
19-
for route in var.ipv4_routes:
20-
route.cidr_block => route
19+
for route in var.ipv4_routes :
20+
route.cidr_block => route
2121
}
2222

2323
route_table_id = aws_route_table.this.id
@@ -36,8 +36,8 @@ resource "aws_route" "ipv4" {
3636

3737
resource "aws_route" "ipv6" {
3838
for_each = {
39-
for route in var.ipv6_routes:
40-
route.cidr => route
39+
for route in var.ipv6_routes :
40+
route.cidr => route
4141
}
4242

4343
route_table_id = aws_route_table.this.id

0 commit comments

Comments
 (0)