We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 570765a + da24293 commit 52c2d16Copy full SHA for 52c2d16
2 files changed
infrastructure/stacks/api-layer/s3_buckets.tf
@@ -16,3 +16,8 @@ module "s3_audit_bucket" {
16
stack_name = local.stack_name
17
workspace = terraform.workspace
18
}
19
+
20
+resource "aws_s3_account_public_access_block" "block_public_access" {
21
+ block_public_acls = true
22
+ block_public_policy = true
23
+}
infrastructure/stacks/iams-developer-roles/github_actions_policies.tf
@@ -164,6 +164,14 @@ resource "aws_iam_policy" "s3_management" {
164
"arn:aws:s3:::*eligibility-signposting-api-${var.environment}-truststore-access-logs",
165
"arn:aws:s3:::*eligibility-signposting-api-${var.environment}-truststore-access-logs/*",
166
]
167
+ },
168
+ {
169
+ Effect = "Allow",
170
+ Action = [
171
+ "s3:GetAccountPublicAccessBlock",
172
+ "s3:PutAccountPublicAccessBlock"
173
+ ],
174
+ Resource = "*"
175
176
177
})
0 commit comments