Skip to content

Commit

Permalink
docs updated
Browse files Browse the repository at this point in the history
  • Loading branch information
omidraha committed Sep 25, 2023
1 parent 8771ec2 commit 302e555
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions src/aws/s3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,25 @@ S3cmd configuration to use with Swift storage object
https://docs.minio.io/docs/s3cmd-with-minio


Sync remote s3 objects to the local file system
-----------------------------------------------
Public Bucket in Amazon S3
---------------------------

Edit bucket policy and add this:
Replace `BUCKET_NAME` with your bucket name.

.. code-block:: bash
$ s3cmd sync s3://files/ ~/ws/backup/files/
{
"Version": "2008-10-17",
"Statement": [
{
"Sid": "AllowPublicRead",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::BUCKET_NAME/*"
}
]
}

0 comments on commit 302e555

Please sign in to comment.