Skip to content

Commit

Permalink
Fix IAM permissions doc
Browse files Browse the repository at this point in the history
  • Loading branch information
guilload committed May 20, 2024
1 parent e38bd6f commit 8ee25c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
1 change: 0 additions & 1 deletion distribution/ecs/quickwit/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ data "aws_iam_policy_document" "quickwit_task_permission" {
statement {
actions = [
"s3:ListBucket",
"s3:ListObjects",

This comment has been minimized.

Copy link
@rdettai

rdettai May 21, 2024

Contributor

pretty incredible that Terraform / the AWS API lets that slip through

"s3:GetObject",
"s3:PutObject",
"s3:DeleteObject"
Expand Down
14 changes: 6 additions & 8 deletions docs/guides/aws-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,11 @@ AWS credentials or region resolution may take a few seconds, especially if the A

Required authorized actions:
- `ListBucket` (on the bucket directly)
- `AbortMultipartUpload`
- `DeleteObject`
- `GetObject`
- `ListMultipartUploadParts`
- `ListObjects`
- `PutObject`
- `DeleteObject`
- `ListMultipartUploadParts`
- `AbortMultipartUpload`

Here is an example of a bucket policy:
```json
Expand All @@ -70,12 +69,11 @@ Here is an example of a bucket policy:
{
"Effect": "Allow",
"Action": [
"s3:AbortMultipartUpload",
"s3:DeleteObject",
"s3:GetObject",
"s3:PutObject",
"s3:DeleteObject",
"s3:ListMultipartUploadParts",
"S3:ListObjects",
"s3:PutObject"
"s3:AbortMultipartUpload"
],
"Resource": [
"arn:aws:s3:::my-bucket/*"
Expand Down

0 comments on commit 8ee25c9

Please sign in to comment.