Skip to content

Commit 2b35229

Browse files
Merge pull request #1148 from NHSDigital/feature/made14-NRL-1938-fixups-during-deployment
[NRL-1938] Allow github-ci to access truststore bucket. Remove ci-data bucket ACL
2 parents 9b5cae8 + affed1b commit 2b35229

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

terraform/account-wide-infrastructure/mgmt/iam_github-ci.tf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,17 @@ resource "aws_iam_policy" "github_ci_policy" {
8181
data.aws_secretsmanager_secret.prod_account_id.arn
8282
]
8383
},
84+
{
85+
Action = [
86+
"s3:GetObject",
87+
"s3:ListBucket"
88+
]
89+
Effect = "Allow"
90+
Resource = [
91+
data.aws_s3_bucket.truststore.arn,
92+
"${data.aws_s3_bucket.truststore.arn}/*"
93+
]
94+
},
8495
{
8596
Action = [
8697
"s3:PutObject",

terraform/account-wide-infrastructure/mgmt/s3.tf

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,6 @@ resource "aws_s3_bucket" "ci_data" {
22
bucket = "${local.prefix}--ci-data"
33
}
44

5-
resource "aws_s3_bucket_acl" "ci_data" {
6-
bucket = aws_s3_bucket.ci_data.id
7-
acl = "private"
8-
9-
depends_on = [
10-
aws_s3_bucket.ci_data
11-
]
12-
}
13-
145
resource "aws_s3_bucket_public_access_block" "ci_data" {
156
bucket = aws_s3_bucket.ci_data.id
167

0 commit comments

Comments
 (0)