AWS S3

  1. Home
  2. Docs
  3. Cloud API
  4. AWS S3

AWS S3

Bucket Name & Region

First, go to the buckets list. Select a bucket or create a new one. To create a bucket click on Create bucket.

API- AWS Buckets List
API- AWS Buckets List

Enter a name for the bucket. And store the name and region such as ‘eu-north-1‘.

If using an old bucket store that bucket name and region.

API- AWS Enter Bucket Name
API- AWS Enter Bucket Name

Click on Create bucket button.

API- AWS Create Bucket
API- AWS Create Bucket

Click on the bucket and go to the Permission tab. Edit the Bucket policy.

API- AWS Bucket Policy

And enter the above code in the Bucket policy. Just replace ‘bucket-name‘ with your bucket name.

{
    "Version": "2008-10-17",
    "Statement": [
        {
            "Sid": "AllowPublicRead",
            "Effect": "Allow",
            "Principal": {
                "AWS": "*"
            },
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::bucket-name/*"
        }
    ]
}

Create a User & Get Access Keys

Go to this link to create a user for the access keys. Enter a user name and click on the Next button.

API- AWS Create User Enter Name
API- AWS Create User Enter Name

Select Attach policies directly. Search S3FullAccess in Permissions policies and check the AmazonS3FullAccess. And click on the Next button.

API- AWS Create User Permission
API- AWS Create User Permission

Review the user and click on Create user button.

API- AWS Create User Review
API- AWS Create User Review

Now, go to the Users page and select the user that you have created. Or you can choose another user.

API- AWS Select User
API- AWS Select User

On the user page select Security credentials. Click on Create access key from the Access keys area.

API- AWS Create Access Key
API- AWS Create Access Key

Select Command Line Interface (CLI) and check I understand. Then click on the Next button.

API- AWS Create Access Key 1
API- AWS Create Access Key 2

Next, click on Create access key button.

API- AWS Create Access Key 2
API- AWS Create Access Key 2

Store the Access key and Secret access key.

API- AWS Create Access Key 3
API- AWS Create Access Key 3
Was this article helpful to you? No Yes

How can we help?