amazon web services - AWS CloudFront Behavior -


i've been setting aws lambda functions s3 events. want set new structure bucket, it's not possible--so set new bucket way want , migrate old things , send new things there. wanted have of structure same under given base folder name old-bucket/images , new-bucket/images. set cloudfront serve old-bucket/images now, wanted add new-bucket/images well. thought behavior tab set such check new-bucket/images first old-bucket/images. alas, didn't work. if object wasn't found in first, end of line.

am misunderstanding how behaviors work? has attempted this?

that expected behavior. origin tells amazon cloudfront obtain data serve users, based upon prefix, suffix, etc.

for example, serve old-bucket/* 1 amazon s3 bucket, while serving new-bucket/* different bucket.

however, there no capability 'fall-back' different origin if file not found.

you check existence of files before serving link, , provide different link depending upon files stored. otherwise, you'll need put of files in location matches link serving.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -