Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Robert Graham 20 posts 88 karma points
    21 days ago
    Robert Graham
    0

    Umbraco8 Simple AWS S3 - Moving existing media over to AWS

    Hi,

    I have recently been moving an existing site over to AWS Elastic Beanstalk.

    As part of this I have set up a new S3 bucket and installed the Umbraco8 Simple AWS S3 package.

    I can get all new media items to save and show in the back office but when I copied all the existing media items over to the bucket, Umbraco is still trying to retrieve these from the local relative path.

    I have tried clearing the app-data/cache folder to no evail.

    Also, I notice that the table called umbracoMediaVersion for the new images has the full path saved against an image (e.g. https://??????-media.s3.amazonaws.com/media/34lpiaa1/band.png) whereas existing images only have the relative path (e.g. /media/34lpiaa1/band2.png).

    Would love if someone could help me work out how to make Umbraco look to the S3 bucket for existing images.

    Thanks

    Rob

  • Marc Love 320 posts 853 karma points
    21 days ago
    Marc Love
    0

    Possibly update umbracoMediaVersion table to include full path for images that were added before you migrated to AWS?

  • Robert Graham 20 posts 88 karma points
    21 days ago
    Robert Graham
    0

    Already tried that approach.

    Updated field and cleared the app data cache etc and still couldn’t get the image to load in the back office. The location must be held somewhere else for the image.

  • Robert Graham 20 posts 88 karma points
    20 days ago
    Robert Graham
    0

    In case anyone else is having issues.

    I've created a fully implemented AWS S3 file provider for the media section in Umbraco.

    I'll be working on making it production ready and then make it available via the package manager.

  • MarvinZ 4 posts 24 karma points
    19 days ago
    MarvinZ
    0

    Hi Robert

    I did a similar implementation for umbraco 7.x, I wonder if your objects (media images) of the s3 bucket still need to be -read-public in order to be resized on Umbraco 8. Do you happen to know? Ive been considering migrating to Umbraco8 and this will hemp me decide.

    thanks in advance!

  • Robert Graham 20 posts 88 karma points
    5 days ago
    Robert Graham
    0

    Hi,

    Not entirely sure to be honest - when I set up the media library in S3, access was set as public.

    As an update, we are moving away from AWS Beanstalk as we have found too many deployment issues with it from Visual Studio for example.

    I would recommend Azure always. Pretty sure Azure is slightly cheaper as well.

    Thanks

  • Ricky 5 posts 74 karma points
    5 days ago
    Ricky
    0

    I would recommend azure also - there's better Umbraco / Image Processor documentation on how to setup media in Blob and also use a CDN to deliver the media. i think all in all the blob and CDN cost less than a pound a month and the app service is relativity inexpensive.

Please Sign in or register to post replies

Write your reply to:

Draft