We are looking at migrating an existing Media section over to AWS CloudFront.
The existing Media section is using the default Umbraco setup, Umbraco.Core.IO.PhysicalFileSystem. The AWS CloudFront solution will be using Umbraco S3 Provider, https://github.com/ElijahGlover/Umbraco-S3-Provider.
I have got the Umbraco S3 Provider working within a clean Umbraco solution. I now need to figure out how to setup Umbraco S3 Provider within an existing Umbraco website which is using the default Umbraco setup. I'm assuming it is not as simple as switch the file system provider in FileSystemProviders.config.
I did this recently for azure with existing site, i just copied over the media folders over to blob storage using azure storage explorer and it all just worked I suspect it should be the same?
In our case the media is already on S3 Bucket and we were using Virtual Path Provider in order to keep Umbraco relative URLs, like the below:
but recently we decided to use CloudFront for boosting the performance, so we had to change the Bucket hostname to something like http://d13m6h7pnph09.cloudfront.net, and it works perfectly with new uploaded media, and the media take the new URL:
So the issue here so to change the old media URLs to the CloudFront as, do you have any idea?
We have solved this by generating script file of the database, and then we searched for the relative path images, we found that they sometimes start with something like this "src:/media/adasd/image.jpg" , we just replaced them by adding [clouldFront base] before "/media" segment
Migrate existing Media section to AWS
We are looking at migrating an existing Media section over to AWS CloudFront.
The existing Media section is using the default Umbraco setup, Umbraco.Core.IO.PhysicalFileSystem. The AWS CloudFront solution will be using Umbraco S3 Provider, https://github.com/ElijahGlover/Umbraco-S3-Provider.
I have got the Umbraco S3 Provider working within a clean Umbraco solution. I now need to figure out how to setup Umbraco S3 Provider within an existing Umbraco website which is using the default Umbraco setup. I'm assuming it is not as simple as switch the file system provider in FileSystemProviders.config.
Any guidance would be greatly appreciated.
Have you found a solution ?
Saif,
I did this recently for azure with existing site, i just copied over the media folders over to blob storage using azure storage explorer and it all just worked I suspect it should be the same?
Hi Ismail,
In our case the media is already on S3 Bucket and we were using Virtual Path Provider in order to keep Umbraco relative URLs, like the below:
but recently we decided to use CloudFront for boosting the performance, so we had to change the Bucket hostname to something like
http://d13m6h7pnph09.cloudfront.net
, and it works perfectly with new uploaded media, and the media take the new URL:So the issue here so to change the old media URLs to the CloudFront as, do you have any idea?
We have solved this by generating script file of the database, and then we searched for the relative path images, we found that they sometimes start with something like this "src:/media/adasd/image.jpg" , we just replaced them by adding [clouldFront base] before "/media" segment
is working on a reply...