-->

DEVOPSZONES

  • Recent blogs

    How to copy objects between Amazon S3 buckets

    How to copy objects between Amazon S3 buckets


    There are frequent requirements to move or copy data across the buckets. There are 2 ways to accomplish this task. Lets Check those:


    1. With Amazon S3 Console.
    2. With aws cli.


    Let's  check both of them.

    With Amazon S3 Console:

    1.    Open the Amazon S3 console.


    2.    Choose Create Bucket.


    3.    Choose a name for your new bucket.
    AWS s3


    4.    Select your AWS Region.

    5.    Once your bucket has been created, go to your Source bucket and select the files/folders to copy.
    6.    Click on the Action option and Select the copy from the drop-down menu.
    7.    Choose the Destination to copy and click on "Choose"  Button.
    AWS S3 copy


    8.    It will take you to "Review" Page, Where click on "Copy" button to start the copy.



    With aws cli :

    1.    Open the Amazon S3 console.


    2.    Choose Create Bucket.

    3.    Choose a name for your new bucket.

    4.    Select your AWS Region.

    5.    Install and configure the AWS Command Line Interface (AWS CLI).


            #aws configure
    More Information on awscli install Check this page.


    6.    Copy the objects between the source and target buckets by running the following sync command:

      aws s3 sync s3://SOURCE_BUCKET_NAME s3://NEW_BUCKET_NAME


    No comments