Create private AWS S3 bucket

S3 buckets are by default private. This is to ensure objects in these buckets which are not meant for public consumption are not accessible to everyone.

The following are steps in creating a private S3 bucket.

  1. On S3 main screen, click on the Create Bucket button.
  2. Choose a unique name and the region that you want your S3 bucket to be hosted. Click Next.

    The name must be unique regardless of regions. You'll get an error when trying to use bucket name already being used anywhere within S3

  3. Set options for your bucket and click Next.
  4. Set permission settings for your bucket and click Next.
  5. Review your bucket properties and click on the Create bucket button.
  6. You'll be brought to the S3 bucket listing. Click on name of the bucket you've just created to manage it.
  7. Test your S3 bucket by uploading a file.
    1. Click on the Upload button.
    2. Click on the Add Files button.
    3. Select the files that you want to upload and click on the Open button.
    4. Click on the Upload button to start uploading the files you've just selected.
    5. Wait for the upload to finish.
    6. Click on one of the files you've just uploaded.
    7. Click on the hyperlink for the file at the bottom.
    8. You should get this permission error when accessing the object as the bucket and all the files within are by default set to private.

Sign up for AWS Certified Solutions Architect - Associate and many other great courses on Udemy to learn more.

AWS Certified Solutions Architect - Associate

Learn more about Amazon Web Services. Get AWS Solutions Architect - Associate certified!

Written by Mohd Shakir Zakaria. Last updated on 2019-03-25