Clarify bucket environment variables

This commit is contained in:
Sam Becker 2023-11-27 20:26:46 -06:00
parent 02eeac15df
commit f93e7d156d

View File

@ -90,8 +90,8 @@ Installation
}] }]
``` ```
- Store configuration - Store configuration
- `NEXT_PUBLIC_S3_BUCKET` - Bucket name: `NEXT_PUBLIC_S3_BUCKET`
- `NEXT_PUBLIC_S3_REGION` - Bucket region: `NEXT_PUBLIC_S3_REGION`
2. [Create IAM policy](https://console.aws.amazon.com/iam/home#/policies) for client uploads (JSON editor recommended) 2. [Create IAM policy](https://console.aws.amazon.com/iam/home#/policies) for client uploads (JSON editor recommended)
- Action: `s3:PutObject`, `s3:PutObjectACL` - Action: `s3:PutObject`, `s3:PutObjectACL`
- Resource: `arn:aws:s3:::{BUCKET_NAME}/upload-*` - Resource: `arn:aws:s3:::{BUCKET_NAME}/upload-*`