💾 Archived View for freeshell.de › tldr › aws-s3api.gmi captured on 2023-01-29 at 04:22:40. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-04-28)

-=-=-=-=-=-=-

aws s3api

Create and delete Amazon S3 buckets and edit bucket properties.

More information.

aws s3api create-bucket --bucket {bucket_name}
aws s3api delete-bucket --bucket {bucket_name}
aws s3api list-buckets
aws s3api list-objects --bucket {bucket_name} --query '{Contents[].{Key: Key, Size: Size}}'
aws s3api put-object --bucket {bucket_name} --key {object_key} --body {path/to/file}
aws s3api get-object --bucket {bucket_name} --key {object_key} {path/to/output_file}
aws s3api put-bucket-policy --bucket {bucket_name} --policy file://{path/to/bucket_policy.json}
aws s3api get-bucket-policy --bucket {bucket_name} --query Policy --output {json|table|text|yaml|yaml-stream} > {path/to/bucket_policy}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).

CC-BY