File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
terraform/account-wide-infrastructure/mgmt Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -60,3 +60,7 @@ data "aws_secretsmanager_secret_version" "test_restore_account_id" {
6060data "aws_secretsmanager_secret_version" "prod_account_id" {
6161 secret_id = data. aws_secretsmanager_secret . prod_account_id . name
6262}
63+
64+ data "aws_s3_bucket" "legacy_ci_data" {
65+ bucket = " ${ local . project } --mgmt--github-ci-logging"
66+ }
Original file line number Diff line number Diff line change @@ -102,7 +102,9 @@ resource "aws_iam_policy" "github_ci_policy" {
102102 Effect = " Allow"
103103 Resource = [
104104 aws_s3_bucket.ci_data.arn,
105- " ${ aws_s3_bucket . ci_data . arn } /*"
105+ " ${ aws_s3_bucket . ci_data . arn } /*" ,
106+ data.aws_s3_bucket.legacy_ci_data.arn,
107+ " ${ data . aws_s3_bucket . legacy_ci_data . arn } /*"
106108 ]
107109 }
108110 ]
You can’t perform that action at this time.
0 commit comments