Skip to content

Commit

Permalink
[v9] Add S3:AbortMultipartUpload to AWS IAM policies (#13235)
Browse files Browse the repository at this point in the history
Searched for all locations where s3:ListBucketMultipartUploads is currently required and added it.

Co-authored-by: Gus Luxton <[email protected]>
  • Loading branch information
zmb3 and webvictim authored Jun 7, 2022
1 parent 526253e commit f2b5527
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/pages/kubernetes-access/helm/guides/aws.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ You'll need to replace these values in the policy example below:
"s3:GetObjectRetention",
"s3:ListBucketVersions",
"s3:ListBucketMultipartUploads",
"s3:AbortMultipartUpload",
"s3:CreateBucket",
"s3:ListBucket",
"s3:GetBucketVersioning",
Expand Down
2 changes: 2 additions & 0 deletions examples/aws/cloudformation/ent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,7 @@ Resources:
- "s3:ListBucket"
- "s3:ListBucketVersions"
- "s3:ListBucketMultipartUploads"
- "s3:AbortMultipartUpload"

-
Effect: "Allow"
Expand Down Expand Up @@ -818,6 +819,7 @@ Resources:
- "s3:ListBucket"
- "s3:ListBucketVersions"
- "s3:ListBucketMultipartUploads"
- "s3:AbortMultipartUpload"

-
Effect: "Allow"
Expand Down
2 changes: 2 additions & 0 deletions examples/aws/cloudformation/oss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,7 @@ Resources:
- "s3:ListBucket"
- "s3:ListBucketVersions"
- "s3:ListBucketMultipartUploads"
- "s3:AbortMultipartUpload"

-
Effect: "Allow"
Expand Down Expand Up @@ -818,6 +819,7 @@ Resources:
- "s3:ListBucket"
- "s3:ListBucketVersions"
- "s3:ListBucketMultipartUploads"
- "s3:AbortMultipartUpload"

-
Effect: "Allow"
Expand Down
3 changes: 2 additions & 1 deletion examples/aws/terraform/ha-autoscale-cluster/auth_iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ resource "aws_iam_role_policy" "auth_s3" {
"Action": [
"s3:ListBucket",
"s3:ListBucketVersions",
"s3:ListBucketMultipartUploads"
"s3:ListBucketMultipartUploads",
"s3:AbortMultipartUpload"
],
"Resource": ["arn:aws:s3:::${aws_s3_bucket.certs.bucket}"]
},
Expand Down
3 changes: 2 additions & 1 deletion examples/aws/terraform/starter-cluster/cluster_iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ resource "aws_iam_role_policy" "cluster_s3" {
"Action": [
"s3:ListBucket",
"s3:ListBucketVersions",
"s3:ListBucketMultipartUploads"
"s3:ListBucketMultipartUploads",
"s3:AbortMultipartUpload"
],
"Resource": ["arn:aws:s3:::${aws_s3_bucket.storage.bucket}"]
},
Expand Down

0 comments on commit f2b5527

Please sign in to comment.