Skip to content

Commit c5e2065

Browse files
authored
attach S3 access for guests to group not user (#372)
1 parent 73671df commit c5e2065

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aws/s3-shared/guest-iam.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ data "aws_iam_policy_document" "s3" {
2828
}
2929
}
3030

31-
resource "aws_iam_user_policy" "s3" {
31+
resource "aws_iam_group_policy" "s3" {
3232
name = "s3-access-for-${module.s3.bucket_name}"
33-
user = aws_iam_user.guest.name
33+
group = "guest-humans"
3434
policy = data.aws_iam_policy_document.s3.json
3535
}
3636

0 commit comments

Comments
 (0)