Appearance
AWS S3 Storage
Using AWS S3 for secure, scalable file uploads and management in NextSaasPilot.

AWS S3 Bucket Setup
You need an S3 bucket and an IAM user with appropriate permissions:
Step 1: Access S3 Service
- Log in to your AWS Management Console
- Navigate to S3 service (you can search for "S3" in the services search bar)
Step 2: Create Your Bucket
- Click "Create bucket"
- Bucket name: Choose a globally unique name (e.g., nextsaaspilot-images)
- Region: Select your preferred AWS region
Step 3: Set Up Permissions
- Uncheck "Block all public access" (or specific settings as needed)
- Confirm the warning about public access
- Add a bucket policy for public read access:
json
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::nextsaaspilot-images/*"
}
]
}
- Step 4: Update Your Environment Variables
Add your AWS S3 credentials and bucket information to your environment variables file (.env
). This should include your AWS region, bucket name, access key, and secret key.
txt
AWS_S3_REGION=""
AWS_S3_BUCKET_NAME=""
AWS_S3_ACCESS_KEY=""
AWS_S3_SECRET_KEY=""