Skip to content

Commit f9c8a03

Browse files
committed
feat(pencil): disable public_acl for Gitlab backup s3 bucket
1 parent 473ebf9 commit f9c8a03

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

backup.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,17 @@ locals {
33
gitlab_backup_iam_policy_name = "${local.environment_prefix}-gitlab-backup"
44
gitlab_backup_iam_role_name = "${local.environment_prefix}-gitlab-backup"
55
}
6+
67
resource "aws_s3_bucket" "gitlab_backup" {
78
count = var.enable_gitlab_backup_to_s3 ? 1 : 0
89
bucket = var.gitlab_backup_bucket_name
910

1011
tags = merge(local.default_tags, var.additional_tags)
1112

13+
aws_s3_bucket_public_access_block = {
14+
block_public_acls = true
15+
}
16+
1217
lifecycle {
1318
precondition {
1419
condition = anytrue([

0 commit comments

Comments
 (0)