Skip to content

Commit a8e93b2

Browse files
BlackYoupdavlgd
authored andcommitted
addons(cellar): fix formatting issue and bad read-only policy
1 parent 4ce8b2a commit a8e93b2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

content/doc/addons/cellar.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,10 @@ This policy example grants read-only access to a bucket for another user, using
516516
"s3:ListBucket"
517517
],
518518
"Effect": "Allow",
519-
"Resource": "arn:aws:s3:::<bucket-name>/*",
519+
"Resource": [
520+
"arn:aws:s3:::<bucket-name>",
521+
"arn:aws:s3:::<bucket-name>/*"
522+
],
520523
"Principal": {"AWS": "arn:aws:iam::cellar_xxx"}
521524

522525
}
@@ -710,8 +713,9 @@ When versioning is enabled, the newly added object is automatically provided wit
710713

711714
If you want to turn off versioning, you can use the following:
712715

713-
```sh
716+
```sh
714717
aws s3api put-bucket-versioning --bucket <bucket_name> --versioning-configuration Status=Suspended
718+
```
715719

716720
You can check if versioning is enabled on your bucket with :
717721

0 commit comments

Comments
 (0)