Skip to content

How to configure AWS (Amazon) S3 Bucket?

Last update: 02/Nov/2024

1. Create an AWS S3 bucket

First of all, go to the following URL to see how to create an AWS S3 bucket:
Click here

2. Select Security Credentials

Go to the IAM (Identity and Access Management) section in the AWS Console and click on My Security Credentials.

AWS IAM Security Credentials

3. Create Access Key

Under Security credentials, create an Access Key.

AWS Create Access Key

4. Get Access Key ID and Secret Access Key

Download or note down the Access Key ID and Secret Access Key — you’ll need these for your configuration.

AWS Access Key ID and Secret

5. Update AWS Details via Admin Panel

To configure AWS details, follow these steps in the admin panel:

  1. Go to Settings -> General Settings -> AWS S3 Configuration Settings.
  2. Set AWS_ENABLE=on to activate S3 storage.
  3. Retrieve AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY from AWS IAM for secure access.
  4. Specify AWS_DEFAULT_REGION as your bucket's region (e.g., us-east-1).
  5. Set AWS_BUCKET to your unique bucket name created in the S3 console.
  6. Set AWS_ENDPOINT to
    https://s3.YOUR_BUCKET_REGION.amazonaws.com
    (replace YOUR_BUCKET_REGION with your specific region).

AWS Admin Panel Config

6. Update AWS Details via .env (Optional)

In your .env file, update the AWS details like this:

AWS .env Config

© 2019-present NativeCode. All rights reserved.