File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed
terraform/account-wide-infrastructure/mgmt Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff 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" ,
Original file line number Diff line number Diff 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-
145resource "aws_s3_bucket_public_access_block" "ci_data" {
156 bucket = aws_s3_bucket. ci_data . id
167
You can’t perform that action at this time.
0 commit comments