Skip to content

Commit 895c264

Browse files
committed
Limit the s3 permissions of the docs-rs builder
1 parent b9dd95b commit 895c264

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

terragrunt/modules/docs-rs/builder.tf

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,14 @@ resource "aws_iam_role_policy" "builder_s3" {
3232
// Access to s3
3333
{
3434
Effect = "Allow"
35-
Action = "s3:*"
35+
Action = [
36+
"s3:PutObject",
37+
"s3:GetObject",
38+
"s3:CreateBucket",
39+
"s3:ListBucket",
40+
"s3:PutObjectTagging",
41+
"s3:DeleteObject"
42+
]
3643

3744
Resource = [
3845
aws_s3_bucket.storage.arn,

0 commit comments

Comments
 (0)