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?

已提問 3 年前檢視次數 220 次
1 個回答
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!

已回答 3 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南