How to configure AWS (Amazon) S3 Bucket?

Last update: 05/Nov/2024

1. Create an AWS S3 bucket

First of all, Goto 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.

PayPal Installation Screenshot

3. Create Access Key

Under Security credentials, create an Access Key.

Optimer Installation

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.

Optimer Installation

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, replacing YOUR_BUCKET_REGION with your specific region for optimized access.
PayPal Installation Screenshot

6. Update AWS Details via .env (Optional)

In .env update the AWS Details like:

Optimer Installation