From 8f2f6107055f624fa7093d1f416ef5741a5329d3 Mon Sep 17 00:00:00 2001 From: Andrew Ballman Date: Fri, 4 Sep 2020 14:53:05 -0700 Subject: [PATCH] Fix bucket issue --- pkg/model/iam/iam_builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/model/iam/iam_builder.go b/pkg/model/iam/iam_builder.go index ad419672b8206..8c9ddea7ba451 100644 --- a/pkg/model/iam/iam_builder.go +++ b/pkg/model/iam/iam_builder.go @@ -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}, ""), }), })