Follow

Guide to: CORS Configuring a Public S3 Bucket

When creating a pixel labeling job for semantic segmentation you’ll need to host your own data in a CORS configured S3 bucket in order to utilize the Superpixels and Magic Wand tools. This guide outlines the general steps to CORS configure your data to be pulled into the platform to be successfully used with our tool.

Steps:

  • 1. Login to your AWS console
  • 2. Navigate to Services > Storage > S3

Screen_Shot_2017-06-28_at_11_35_16_AM.png

  • 3. You will now see a list of buckets you have access to in your account

_.png

  • 4. Find bucket to be used in your job

Screen_Shot_2017-06-28_at_11.38.08_AM__1_.png

  • 5. To make images public first right click on the folder and select “Make public”

Screen_Shot_2017-06-28_at_11_37_27_AM.png

  • 6. Confirm this action:

Screen_Shot_2017-06-28_at_11_37_38_AM__1_.png

  • 7. To CORS configure the bucket go to Permissions:

Screen_Shot_2017-06-28_at_11_38_16_AM.png

  • 8. Select CORS configuration
    • 9. Paste in code (as seen below) and save:

Screen_Shot_2017-06-28_at_11.38.30_AM__1_.png

Code:

<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<AllowedMethod>POST</AllowedMethod>
<MaxAgeSeconds>3000</MaxAgeSeconds>
<ExposeHeader>ETag</ExposeHeader>
<AllowedHeader>Authorization</AllowedHeader>
<AllowedHeader>Content-Type</AllowedHeader>
<AllowedHeader>Origin</AllowedHeader>
<AllowedHeader>X-Requested-With</AllowedHeader>
</CORSRule>
</CORSConfiguration>

Best practices when using S3:

    1. Keep image names and buckets anonymous as the generated links will show the file path
    2. If desired, expiration times can be added to images
    3. For any bucket that is CORS configured and public, child buckets inherit all settings

For more AWS documentation, please visit their support site.


Was this article helpful?
0 out of 0 found this helpful


Have more questions? Submit a request
Powered by Zendesk