CORS configuration of your Amazon S3 bucket for data uploads

If you want to send data to an Amazon S3 bucket, you need to configure CORS for the Amazon S3 bucket. The Amazon S3 bucket requires a CORS configuration before you can upload data to it or download data from it. For more information on CORS and how to configure it for your S3 bucket, see Cross Origin Resource Sharing (CORS) on AWS documentation.

Here's a sample CORS configuration:

<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
<AllowedOrigin>https://app.getblueshift.com</AllowedOrigin>
<AllowedOrigin>https://app.blueshift.com</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<MaxAgeSeconds>3000</MaxAgeSeconds>
<ExposeHeader>x-amz-server-side-encryption</ExposeHeader>
<ExposeHeader>x-amz-request-id</ExposeHeader>
<ExposeHeader>x-amz-id-2</ExposeHeader>
<ExposeHeader>ETag</ExposeHeader>
<ExposeHeader>Accept-Ranges</ExposeHeader>
<ExposeHeader>Content-Range</ExposeHeader>
<ExposeHeader>Content-Encoding</ExposeHeader>
<ExposeHeader>Content-Length</ExposeHeader>
<AllowedHeader>*</AllowedHeader>
</CORSRule>
</CORSConfiguration>

Ensure that your S3 Keys have read/write access. You can get the information on S3 bucket on the Account Settings page of the Blueshift app

new_account_settings.png

If you run into issues at the time of configuring CORS for your Amazon S3 bucket, contact us on support@blueshift.com

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