Amazon S3 Upload Configuration
Add your S3 upload_credentials
The “Amazon S3 Full Access” policy template for your IAM account is the easiest way to create new S3 credentials for uploading.
- Go to your AWS IAM Dashboard.
- Click Users on the left navigation.
- Click Add User or select an existing user.
- If adding a User, give them a User Name.
- Click the
Next
button to be brought to Step #2, Set Permissions. - Select the Attach existing policies directly option.
- You will be presented with a list of policy templates. Search “AmazonS3FullAccess”, and check its option checkbox. If you prefer to set your own specific permission policy, see the note below.
- Click
Next
to review your new user. - If everything looks correct, select the
Create user
button. - Once you’ve created your new user, visit its details page and create a set of access keys under the security credentials tab. These keys will act as your
upload_credentials
, allowing you to upload images and videos directly to your Source.
Or, if you prefer to set specific permissions, grant the following:
ListBucket
GetBucketLocation
GetObject
PutObject
Update your bucket’s CORS configuration
Please update your CORS configuration allowing the PUT method and the Content-Type header from https://dashboard.imgix.com
. Your bucket’s CORS configuration can be found in the permissions tab of your bucket. See S3 documentation for more information.
- Navigate to your S3 Bucket in AWS
- Click on the Permissions tab
- Scroll down to Cross-origin resource sharing (CORS) section
- Add the
AllowedHeaders
,AllowedMethods
, andAllowedOrigins
properties. If your CORS section in your S3 settings is blank, you can copy the JSON values into your CORS configuration:
[
{
"AllowedHeaders": ["Content-Type"],
"AllowedMethods": ["PUT"],
"AllowedOrigins": ["https://dashboard.imgix.com"],
"ExposeHeaders": []
}
]