Adding new S3 bucket to existing distribution

0

Hi, first post here so please excuse my lack of knowledge of AWS.

I have just taken over support & development of a site that is hosted in AWS. It has been stripped out of a larger group of sites and resources that were acquired in a recent company takeover and is mostly working okay. I have scant documentation on the AWS setup and to me it seems to be overly complicated. For background I am much more of a developer than a sysadmin or architect and I only have experience of Azure previously but anyway, onto my issue...

So there is an S3 bucket that is currently being served through a CloudFront distribution for CDN type purposes and this works fine. For reasons I will leave out (but it's a must) I need to "rename" the bucket, but I believe to do this I must create a new bucket and sync the content over. I have done this so currently have 2 buckets with the same content and exact same permissions etc.

Links direct to the new S3 bucket work fine but links through the CloudFront cdn are broken. e.g.:

So I'm guessing that somewhere there is a link to the existing S3 bucket and I need to configure the new bucket too, but I'm really struggling to find out where. The CloudFront distribution https://dmffixln4zsgf.cloudfront.net has just one Origin configured which has the domain cloud-front-web-proxy-1738297328.eu-west-1.elb.amazonaws.com. So this must be an "Elastic Load Balancer"? I've had a look at this in the EC2 -> Load Balancers page and cannot see any linking to the original S3 bucket.

Could anyone suggest any further places to look please?

demandé il y a 3 ans231 vues
1 réponse
0

Have figured it out (and nobody here would have got it).

There was a virtual server running some sort of home grown content proxy service that uses a SQLite database with a single table it it. The existing bucket name was featured in one of the rows so I added another row with my new bucket name in, restarted the service and voila!

répondu il y a 3 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions