AWS S3 - Hands On Demo

Step 1: Create your first S3 bucket

 

  1. Sign in to the AWS Management Console and open the Amazon S3 console at https://console.aws.amazon.com/s3/
  2. In the left navigation pane, choose Buckets.
  3. Choose Create bucket.
  4. The Create bucket page opens.
  5. For Bucket name, enter a name for your bucket.
  6. For Region, choose the AWS Region where you want the bucket to reside.
  7. To minimize latency and costs and address regulatory requirements, choose a Region close to you. Objects stored in a Region never leave that Region unless you explicitly transfer them to another Region.
  8. Under Object Ownership, to disable or enable ACLs and control ownership of objects uploaded in your bucket, choose one of the following settings:
  9. Under Block Public Access settings for this bucket, choose the Block Public Access settings that you want to apply to the bucket.
  10. (Optional) Under Bucket Versioning, you can choose if you wish to keep variants of objects in your bucket. 
  11. (Optional) Under Tags, you can choose to add tags to your bucket. Tags are key-value pairs used to categorize storage.
  12. To add a bucket tag, enter a Key and optionally a Value and choose Add Tag.
  13. Under Default encryption, choose Server-side encryption with Amazon S3 managed keys (SSE-S3).
  14. To configure default encryption, under Encryption type, choose one of the following:
  15. Choose Create bucket

Step 2: Upload an object to your bucket

 

After creating a bucket in Amazon S3, you're ready to upload an object to the bucket. An object can be any kind of file: a text file, a photo, a video, and so on.

 

To upload an object to a bucket
  1. Open the Amazon S3 console at https://console.aws.amazon.com/s3/.

  2. In the Buckets list, choose the name of the bucket that you want to upload your object to.

  3. On the Objects tab for your bucket, choose Upload.

  4. Under Files and folders, choose Add files.

  5. Choose a file to upload, and then choose Open.

  6. Choose Upload.

You've successfully uploaded an object to your bucket.

Step 3: Download an object

After you upload an object to a bucket, you can view information about your object and download the object to your local computer.

 

To download an object from an S3 bucket

 

 

  1. Sign in to the AWS Management Console and open the Amazon S3 console at https://console.aws.amazon.com/s3/.

  2. In the Buckets list, choose the name of the bucket that you want to download an object from.

     

  3. You can download an object from an S3 bucket in any of the following ways:

    • Select the check box next to the object, and choose Download. If you want to download the object to a specific folder, on the Actions menu, choose Download as.

    • If you want to download a specific version of the object, turn on Show versions (located next to the search box). Select the check box next to the version of the object that you want, and choose Download. If you want to download the object to a specific folder, on the Actions menu, choose Download as.

You've successfully downloaded your object.

Step 4: Copy your object to a folder

You've already added an object to a bucket and downloaded the object. Now, you create a folder and copy the object and paste it into the folder.

To copy an object to a folder
  1. In the Buckets list, choose your bucket name.

  2. Choose Create folder and configure a new folder:

    1. Enter a folder name (for example, favorite-pics).

    2. For the folder encryption setting, choose Disable.

    3. Choose Save.

  3. Navigate to the Amazon S3 bucket or folder that contains the objects that you want to copy.

  4. Select the check box to the left of the names of the objects that you want to copy.

  5. Choose Actions and choose Copy from the list of options that appears.

    Alternatively, choose Copy from the options in the upper right.

  6. Choose the destination folder:

    1. Choose Browse S3.

    2. Choose the option button to the left of the folder name.

      To navigate into a folder and choose a subfolder as your destination, choose the folder name.

    3. Choose Choose destination.

    The path to your destination folder appears in the Destination box. In Destination, you can alternately enter your destination path, for example, s3://bucket-name/folder-name/.

  7. In the bottom right, choose Copy.

    Amazon S3 copies your objects to the destination folder.

Step 5: Delete your objects and bucket

 

When you no longer need an object or a bucket, we recommend that you delete them to prevent further charges. If you completed this getting started walkthrough as a learning exercise, and you don't plan to use your bucket or objects, we recommend that you delete your bucket and objects so that charges no longer accrue.

Before you delete your bucket, empty the bucket or delete the objects in the bucket. After you delete your objects and bucket, they are no longer available.

If you want to continue to use the same bucket name, we recommend that you delete the objects or empty the bucket, but don't delete the bucket. After you delete a bucket, the name becomes available to reuse. However, another AWS account might create a bucket with the same name before you have a chance to reuse it.

Thanks

For

Watching

AWS S3 - Hands On Demo

By Deepak Dubey

AWS S3 - Hands On Demo

  • 56