2

How to set up an S3 bucket

A step-by-step guide to create a bucket and set up the permissions in Amazon Web Services

Jordi Giménez

Last Update há 9 meses

Overview

  • Create an S3 bucket
  • Create an IAM Policy that allows the ListBucket, PutObject, and GetObject actions
  • Create an IAM User account and get an Access Key ID and Secret Access Key

Creating an S3 bucket

  • Start at aws.amazon.com and log in or create an account
  • At the top search bar, find the S3 service:
  • Under General purpose buckets, select Create bucket
  • Fill in the name of your bucket. In this example, we chose photocopies-example (you'll need to choose a different name).
  • You may leave the rest of the settings as-is.
  • Click Create bucket.

Creating an IAM Policy to grant access to the bucket

  • Find the IAM service using the search bar on the top
  • Select Policies from the side menu and Create Policy
  • In the Policy editor, select the S3 service
    • Enable the ListBucket action
    • In the Resources section, specify the bucket name (for example photocopies-example –your bucket name will be different). The resulting Resource ARN will look like this: arn:aws:s3:::photocopies-example
    • Leave the Request conditions empty.
  • Click on Add more permissions
    • Select the S3 service
    • Enable the PutObject and GetObject actions
    • In the Resources section, specify the bucket name (for example photocopies-example –your bucket name will be different) and select Any object name. The resulting Resource ARN will look like this: arn:aws:s3:::photocopies-example/*
    • Leave the Request conditions empty.
  • Click Next
  • Under Policy details, policy name, give your policy a name. In this example, we used PhotocopiesExampleS3Bucket, but you may use a different one.
  • Click Create policy

If you prefer to deal with JSON, here's the policy in JSON format:

Creating an IAM User

  • Under IAM, select Users on the sidebar
  • Click on Create user
  • Choose a name for your user, for example photocopies-example
  • Click Next
  • In the Set permissions step, select the policy you previously created (in our example, PhotocopiesExampleS3Bucket)
  • Click Next
  • Confirm the creation of the user by clicking Create user.
  • In the user list, select the user you just created (in our example, photocopies-example)
  • Navigate to the Security Credentials tab and click Create access key
  • In the next step, select Third-party service and I understand the above recommendation and want to proceed to create an access key
  • Click Next
  • Confirm the creation with Create access key
  • On the next page, the Access key ID and Secret access key will be displayed. Click on Show to display the secret access key. Take note of them

Summary

With the previous steps, you chose a name for a bucket, and got an access key ID and secret access key. You may use those details in photocopi.es to archive your Asana tasks to the S3 bucket you just created.

Was this article helpful?

0 out of 0 liked this article