Amazon S3 Origin based routing using Lambda@Edge and CloudFront Distribution

Опубликовано: 04 Июнь 2021
на канале: Vibhor Gupta - Product | Project | Technology
10,915
185

Deploy Lambda@Edge function that will route traffic to S3 bucket based on the viewer’s country. CloudFront adds the CloudFront-Viewer-Country header when the request is received from any user. The trigger can be used to change the Amazon S3 origin from which we get the content via Lambda@Edge function.

Timestamps
00:00 Introduction
00:35 Architecture of S3 origin based routing
01:53 Benefit of using S3 origin based routing
02:13 Create Amazon S3 buckets in different regions
03:26 Create CloudFront distribution
04:30 Upload content in Amazon S3 and enable static website hosting
06:07 Verify static websites across all regions
07:43 Create a Lambda@Edge function for country-viewer-request
09:12 Lambda@Edge example functions in AWS documentation
10:45 Add origin-request CloudFront trigger
11:22 Edit cache behavior and whitelist country-viewer-request
12:23 Simulate as users from different countries

Link to resources:
Lambda@Edge example functions
https://docs.aws.amazon.com/AmazonClo...

S3 example bucket policies
https://docs.aws.amazon.com/AmazonS3/...


На этой странице сайта вы можете посмотреть видео онлайн Amazon S3 Origin based routing using Lambda@Edge and CloudFront Distribution длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Vibhor Gupta - Product | Project | Technology 04 Июнь 2021, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 10,915 раз и оно понравилось 185 зрителям. Приятного просмотра!