Skip to content

Commit 64a494d

Browse files
author
nozaq
authored
Merge pull request nozaq#42 from nozaq/pre-commit
chore: use the pre-commit hook to format code
2 parents e875ddc + 76a0c39 commit 64a494d

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.pre-commit-config.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- repo: git://github.com/antonbabenko/pre-commit-terraform
2+
rev: v1.17.0
3+
hooks:
4+
- id: terraform_fmt

modules/secure-bucket/main.tf

+6-6
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ resource "aws_s3_bucket" "access_log" {
1919
resource "aws_s3_bucket_public_access_block" "access_log" {
2020
bucket = aws_s3_bucket.access_log.id
2121

22-
block_public_acls = true
23-
block_public_policy = true
24-
ignore_public_acls = true
22+
block_public_acls = true
23+
block_public_policy = true
24+
ignore_public_acls = true
2525
restrict_public_buckets = true
2626
}
2727

@@ -62,8 +62,8 @@ resource "aws_s3_bucket" "content" {
6262
resource "aws_s3_bucket_public_access_block" "content" {
6363
bucket = aws_s3_bucket.content.id
6464

65-
block_public_acls = true
66-
block_public_policy = true
67-
ignore_public_acls = true
65+
block_public_acls = true
66+
block_public_policy = true
67+
ignore_public_acls = true
6868
restrict_public_buckets = true
6969
}

0 commit comments

Comments
 (0)