From cd59a945d8b97fd514b29f01fde168f80cc1f803 Mon Sep 17 00:00:00 2001 From: kannappanr <30541348+kannappanr@users.noreply.github.com> Date: Wed, 25 Dec 2019 22:04:46 -0800 Subject: [PATCH] Fix: Policy action name for Get/Put BucketLifeCycle (#8698) S3:GetBucketLifeCycle should be changed to S3:GetLifeCycleConfiguration S3:PutBucketLifeCycle should be changed to S3:PutLifeCycleConfiguration --- pkg/policy/action.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/policy/action.go b/pkg/policy/action.go index b3466ec85..d2830c7d2 100644 --- a/pkg/policy/action.go +++ b/pkg/policy/action.go @@ -85,10 +85,10 @@ const ( PutObjectAction = "s3:PutObject" // PutBucketLifecycleAction - PutBucketLifecycle Rest API action. - PutBucketLifecycleAction = "s3:PutBucketLifecycle" + PutBucketLifecycleAction = "s3:PutLifecycleConfiguration" // GetBucketLifecycleAction - GetBucketLifecycle Rest API action. - GetBucketLifecycleAction = "s3:GetBucketLifecycle" + GetBucketLifecycleAction = "s3:GetLifecycleConfiguration" // BypassGovernanceModeAction - bypass governance mode for DeleteObject Rest API action. BypassGovernanceModeAction = "s3:BypassGovernanceMode"