Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion terraform/releases/impl/promote-release.tf
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,17 @@ resource "aws_iam_role_policy" "promote_release" {
"${aws_s3_bucket.static.arn}/doc/*",
"${aws_s3_bucket.static.arn}/dist",
"${aws_s3_bucket.static.arn}/dist/*",

]
},
{
Sid = "BucketsReadDelete"
Effect = "Allow"
Action = [
"s3:GetObjectAcl",
"s3:GetObject",
"s3:DeleteObject",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, I actually am not sure we need delete permissions on the CI artifacts bucket -- I think we should only read from that bucket. Are you aware of some deletion in our scripts?

]
Resource = [
// Artifacts bucket
"${data.aws_s3_bucket.artifacts.arn}/rustc-builds",
"${data.aws_s3_bucket.artifacts.arn}/rustc-builds/*",
Expand Down