Skip to content

Commit

Permalink
Fix bucket issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Ballman committed Sep 4, 2020
1 parent e6c8c6d commit 8f2f610
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/model/iam/iam_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ func (b *PolicyBuilder) buildAWSS3Policy(p *Policy, bucket string, key string) *
Effect: StatementEffectAllow,
Action: stringorslice.Of("s3:GetBucketLocation", "s3:GetEncryptionConfiguration", "s3:ListBucket"),
Resource: stringorslice.Slice([]string{
strings.Join([]string{b.IAMPrefix(), ":s3:::", iamS3Path.Bucket()}, ""),
strings.Join([]string{b.IAMPrefix(), ":s3:::", bucket}, ""),
}),
})

Expand Down

0 comments on commit 8f2f610

Please sign in to comment.