Skip to content

Commit 5ea2535

Browse files
committed
Temporarily grant legacy permissions
The current CI uploads Rustup build to the dev-static bucket. To not break the existing workflow while implementing the new release process, the current permissions are temporarily granted to the new user for Rustup's CI. They should be removed once the new release process has been implemented.
1 parent 6e8dab2 commit 5ea2535

File tree

1 file changed

+19
-0
lines changed
  • terragrunt/modules/rustup

1 file changed

+19
-0
lines changed

terragrunt/modules/rustup/s3.tf

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,22 @@ resource "aws_iam_user_policy" "upload_builds" {
3030
user = module.aws_iam_user.user_name
3131
policy = data.aws_iam_policy_document.upload_builds.json
3232
}
33+
34+
data "aws_iam_policy_document" "legacy_ci" {
35+
statement {
36+
sid = "WriteToDevStatic"
37+
effect = "Allow"
38+
39+
actions = [
40+
"s3:*",
41+
]
42+
43+
resources = ["arn:aws:s3:::dev-static-rust-lang-org/rustup/*"]
44+
}
45+
}
46+
47+
resource "aws_iam_user_policy" "legacy_ci" {
48+
name = "legacy-ci"
49+
user = module.aws_iam_user.user_name
50+
policy = data.aws_iam_policy_document.legacy_ci.json
51+
}

0 commit comments

Comments
 (0)