@@ -37,6 +37,7 @@ Commands:
3737 debug-bucket Run a bunch of diagnostics to help debug a bucket
3838 delete-objects Delete one or more object from an S3 bucket
3939 delete-user Delete specified users, their access keys and their...
40+ get-bucket-policy Get bucket policy for a bucket
4041 get-cors-policy Get CORS policy for a bucket
4142 get-object Download an object from an S3 bucket
4243 get-objects Download multiple objects from an S3 bucket
@@ -48,6 +49,7 @@ Commands:
4849 policy Output generated JSON policy for one or more buckets
4950 put-object Upload an object to an S3 bucket
5051 put-objects Upload multiple objects to an S3 bucket
52+ set-bucket-policy Set bucket policy for a bucket
5153 set-cors-policy Set CORS policy for a bucket
5254 whoami Identify currently authenticated user
5355```
@@ -156,6 +158,25 @@ Usage: s3-credentials delete-user [OPTIONS] USERNAMES...
156158
157159 s3-credentials delete-user username1 username2
158160
161+ Options:
162+ --access-key TEXT AWS access key ID
163+ --secret-key TEXT AWS secret access key
164+ --session-token TEXT AWS session token
165+ --endpoint-url TEXT Custom endpoint URL
166+ -a, --auth FILENAME Path to JSON/INI file containing credentials
167+ --help Show this message and exit.
168+ ```
169+ ## s3-credentials get-bucket-policy --help
170+
171+ ```
172+ Usage: s3-credentials get-bucket-policy [OPTIONS] BUCKET
173+
174+ Get bucket policy for a bucket
175+
176+ s3-credentials get-bucket-policy my-bucket
177+
178+ Returns the bucket policy for this bucket, if set, as JSON
179+
159180Options:
160181 --access-key TEXT AWS access key ID
161182 --secret-key TEXT AWS secret access key
@@ -464,6 +485,29 @@ Options:
464485 -a, --auth FILENAME Path to JSON/INI file containing credentials
465486 --help Show this message and exit.
466487```
488+ ## s3-credentials set-bucket-policy --help
489+
490+ ```
491+ Usage: s3-credentials set-bucket-policy [OPTIONS] BUCKET
492+
493+ Set bucket policy for a bucket
494+
495+ s3-credentials set-bucket-policy my-bucket --policy-file policy.json
496+
497+ Or to set a policy that allows GET requests from all:
498+
499+ s3-credentials set-bucket-policy my-bucket --allow-all-get
500+
501+ Options:
502+ --policy-file FILENAME
503+ --allow-all-get Allow GET requests from all
504+ --access-key TEXT AWS access key ID
505+ --secret-key TEXT AWS secret access key
506+ --session-token TEXT AWS session token
507+ --endpoint-url TEXT Custom endpoint URL
508+ -a, --auth FILENAME Path to JSON/INI file containing credentials
509+ --help Show this message and exit.
510+ ```
467511## s3-credentials set-cors-policy --help
468512
469513```
0 commit comments