Skip to content

Commit

Permalink
attach S3 access for guests to group not user (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
swiknaba authored Jan 15, 2025
1 parent 73671df commit c5e2065
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aws/s3-shared/guest-iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ data "aws_iam_policy_document" "s3" {
}
}

resource "aws_iam_user_policy" "s3" {
resource "aws_iam_group_policy" "s3" {
name = "s3-access-for-${module.s3.bucket_name}"
user = aws_iam_user.guest.name
group = "guest-humans"
policy = data.aws_iam_policy_document.s3.json
}

Expand Down

0 comments on commit c5e2065

Please sign in to comment.