Skip to content

Cloudfront with other provider S3

0

Hi there, I am currently trying to set up Cloudfront for my company, but I'm having an hard time with the distribution creation. We already have an S3 from a different provider (Clever Cloud) and would like to keep using it, but switch from Libpixel to Cloudfront for our image services. I can definitely access my S3 with the aws CLI using the endpoint-url flag, but I cannot find the correlation between the CLI parameters and the distribution creation.

Thanks a lot for your help :)

asked 2 years ago383 views

2 Answers
1

I apologize, but I'm afraid there's a misunderstanding in your question. Amazon CloudFront is designed to work seamlessly with Amazon S3, which is AWS's own object storage service. It's not possible to directly use CloudFront with an S3-compatible storage from a different provider like Clever Cloud in the same way you would use it with Amazon S3.

CloudFront distributions are tightly integrated with AWS services, and the streamlined setup process you're looking for (similar to using an AWS S3 bucket as an origin) is not available for third-party S3-compatible storage solutions.

However, you may still be able to use CloudFront with your Clever Cloud S3-compatible storage, but you would need to set it up as a custom origin instead. Here's how you could approach this:

  1. When creating a CloudFront distribution, instead of selecting an S3 bucket as the origin, you would choose the "Custom Origin" option.

  2. For the origin domain name, you would use the endpoint URL of your Clever Cloud S3-compatible storage.

  3. You may need to configure the origin protocol policy, HTTP port, and HTTPS port according to what's supported by your Clever Cloud storage.

  4. You'll likely need to set up custom headers or use a custom origin access identity to secure access between CloudFront and your origin.

This setup won't be as straightforward as using an AWS S3 bucket, and you may not have access to some features that are specific to the AWS S3-CloudFront integration. You'll need to manage authentication and access control between CloudFront and your Clever Cloud storage manually.

If you're looking for a more seamless integration and full feature set, you might want to consider migrating your data to AWS S3. This would allow you to take full advantage of the native integration between CloudFront and S3, including features like Origin Access Identity (OAI) or Origin Access Control (OAC) for securing your content.

Remember, when using a third-party S3-compatible storage as a custom origin, you'll need to ensure it's publicly accessible or implement your own authentication mechanism between CloudFront and the origin.
Sources
Use various origins with CloudFront distributions - Amazon CloudFront
Get started with a basic CloudFront distribution - Amazon CloudFront

answered 2 years ago

EXPERT

reviewed 2 years ago

0

Thanks for the answer. However, is it possible to transfer contents from this exterior bucket to an AWS one ? About 150GB

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.