Skip to content

Commit 17f2216

Browse files
authored
Merge pull request #241 from rylev/limit-s3-perms
Limit the s3 permissions of the docs-rs builder
2 parents 7ea2632 + 92c8cd6 commit 17f2216

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

terragrunt/modules/docs-rs/builder.tf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@ 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:ListBucket",
38+
"s3:PutObjectTagging",
39+
"s3:DeleteObject"
40+
]
3641

3742
Resource = [
3843
aws_s3_bucket.storage.arn,

0 commit comments

Comments
 (0)