Streamit Laravel - Documentation
Streamit Laravel

How to set AWS Storage?

Set up AWS Storage

Step 1 – Create an AWS S3 Bucket

  • Sign in to the AWS Console.
  • Search for S3 in the AWS Services menu and open it.
  • Click “Create bucket”.
  • Enter a unique bucket name (e.g., my-app-storage).
  • Select your AWS region (e.g., us-east-1, eu-west-1).
  • Configure settings as needed and click “Create bucket”.

Step 2 – Create IAM User and Get Credentials

  • Search for IAM in the AWS Services menu and open it.
  • Click Users → Add users.
  • Enter a username (e.g., s3-storage-user).
  • Select “Access key – Programmatic access” under credential type.
  • Click Next: Permissions.
  • Click “Attach policies directly”.
  • Search for AmazonS3FullAccess and select it.
  • Click Next: Review → Create user.
  • Copy the Access Key ID and Secret Access Key or download the credentials file.

Step 3 – Add AWS Credentials to .env File

Open your .env file in your Flutter backend and add:

AWS_ACCESS_KEY_ID=your-access-key-id
AWS_SECRET_ACCESS_KEY=your-secret-access-key
AWS_DEFAULT_REGION=your-region
AWS_BUCKET=your-bucket-name
AWS_USE_PATH_STYLE_ENDPOINT=false
ACTIVE_STORAGE=s3