CORS configuration of your Amazon S3 bucket for data uploads

If you have your data in an Amazon S3 bucket and want to import this data into Blueshift, you must configure CORS for the Amazon S3 bucket. For more information on CORS and how to configure it for your S3 bucket, see Cross Origin Resource Sharing (CORS) on AWS documentation.

Note

If you are using the Amazon S3 bucket provided by Blueshift to import data into Blueshift, CORS configuration is not required.

Here's a sample CORS configuration. Ensure that your S3 Keys have read/write access.

<?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>

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

Comments

0 comments

Please sign in to leave a comment.