Connecting Shade with AWS S3
Create the bucket
Create a bucket. Keep note of the region and bucket name that you create
Just change the bucket name input. All other defaults can be left the same (general purpose, no ACL, block all public access, no bucket versioning, server side encryption, no advanced settings)
CORS configuration
Click into the bucket and click the permissions tab. Scroll to the
Cross-origin resource sharing (CORS)section.

2. Click edit and then paste this JSON.
This JSON is used to allow web browsers to access this bucket. This is secure as because we provide redirects from our server, we maintain the specific scope of CORs permissions so this configuration can be left generic.
Create the scoped policy
Under
IAMclickPoliciesthen clickCreate policyMost mistakes that we see happen right here where the policies aren’t customized correctly

Make sure to customize this JSON file below to change the
Resourceentry fromthe-bucket-name-you-provisioned-earlierto the name of the bucket you created first. This is in two spots one under thebucketnameresource and one under thebucketname/*resource
Use the JSON editor and paste this into the policy editor
Name your policy to be relevant to the access to the shade bucket we created earlier and add a description. Create the policy
Create the user
Now under
Userson the left sidebar of IAM clickCreate userGive the user a name thats relevant to Shade. This will be the user that Shade servers will access your bucket through and sign urls via.
Choose
Attach policies directlyand find the policy that you created. Hit the checkbox to attach it and press next

Create the user
Now click into the user and hit
Create access key

Select
Application running outside AWS

Save the created Access and Secret key to your computer
Create drives in Shade
In the Shade app create a BYOS drive

Use the
Customconfiguration for creating your bucketFill the configuration with the proper values. Pay attention to the endpoint. Use the
s3.<region>.amazonaws.comformat prefixed withhttps://. Find these endpoints depending on the region you created your bucket in underAmazon S3 endpointson this page: https://docs.aws.amazon.com/general/latest/gr/s3.html

Upload a file for testing. You should see objects appear in your S3 bucket, the file should upload and get previews/proxies normally.
Last updated
Was this helpful?

