Skip to content

How to Configure AWS (Amazon) S3

Last update: 02 Nov 2024

Follow the steps below to configure Amazon S3 as the storage provider in Optimer.

Step 1: Create an Amazon S3 Bucket

Create a new Amazon S3 bucket by following this guide:

https://cloudkatha.com/how-to-create-s3-bucket-in-aws-step-by-step

Step 2: Open IAM Security Credentials

Sign in to the AWS Console and navigate to:

IAM -> My Security Credentials

AWS IAM Security Credentials

Step 3: Create an Access Key

Under Security Credentials, create a new Access Key.

AWS Create Access Key

Step 4: Copy the Access Keys

After creating the access key, copy the following credentials:

  • Access Key ID
  • Secret Access Key

Store them securely, as you'll need them for the Optimer configuration.

AWS Access Keys

Step 5: Configure Amazon S3 in the Admin Panel

Log in to your Optimer Admin Panel and navigate to:

Settings -> General Settings -> AWS S3 Configuration Settings

Fill in the following details:

  • AWS Enable: ON
  • Access Key ID
  • Secret Access Key
  • Default Region (for example, us-east-1)
  • Bucket Name
  • Endpoint

Use the following endpoint format:

text
https://s3.YOUR_BUCKET_REGION.amazonaws.com

Replace YOUR_BUCKET_REGION with your S3 bucket region.

AWS S3 Configuration

Step 6: Configure Amazon S3 Using the .env File (Optional)

You can also configure Amazon S3 by updating the AWS environment variables in your project's .env file.

After updating the values, save the file.

AWS .env Configuration

© 2019-present NativeCode. All rights reserved.