amazon-cloudfront

Route53 and Cloudfront The request could not be satisfied?

我是研究僧i 提交于 2021-01-26 13:09:48
问题 I just want to serve my s3 files on cdn.mydomain.com So I create cloudfront distribution which is working fine on https://dxxxxxxxx.cloudfront.net/test.jpg - I get the image. And now I want to associate my domain at cdn.domain.com with cloudfront in route53. So I create A record type A-IPv4 address. with name cdn.domain.com alias target I manully put dxxxxxxxx.cloudfront.net . But when I open the url: http://cdn.mydomain.com/test.jpg I get the error: 403 ERROR The request could not be

Route53 and Cloudfront The request could not be satisfied?

旧时模样 提交于 2021-01-26 13:09:25
问题 I just want to serve my s3 files on cdn.mydomain.com So I create cloudfront distribution which is working fine on https://dxxxxxxxx.cloudfront.net/test.jpg - I get the image. And now I want to associate my domain at cdn.domain.com with cloudfront in route53. So I create A record type A-IPv4 address. with name cdn.domain.com alias target I manully put dxxxxxxxx.cloudfront.net . But when I open the url: http://cdn.mydomain.com/test.jpg I get the error: 403 ERROR The request could not be

Route53 and Cloudfront The request could not be satisfied?

被刻印的时光 ゝ 提交于 2021-01-26 13:07:10
问题 I just want to serve my s3 files on cdn.mydomain.com So I create cloudfront distribution which is working fine on https://dxxxxxxxx.cloudfront.net/test.jpg - I get the image. And now I want to associate my domain at cdn.domain.com with cloudfront in route53. So I create A record type A-IPv4 address. with name cdn.domain.com alias target I manully put dxxxxxxxx.cloudfront.net . But when I open the url: http://cdn.mydomain.com/test.jpg I get the error: 403 ERROR The request could not be

Route53 and Cloudfront The request could not be satisfied?

对着背影说爱祢 提交于 2021-01-26 13:02:32
问题 I just want to serve my s3 files on cdn.mydomain.com So I create cloudfront distribution which is working fine on https://dxxxxxxxx.cloudfront.net/test.jpg - I get the image. And now I want to associate my domain at cdn.domain.com with cloudfront in route53. So I create A record type A-IPv4 address. with name cdn.domain.com alias target I manully put dxxxxxxxx.cloudfront.net . But when I open the url: http://cdn.mydomain.com/test.jpg I get the error: 403 ERROR The request could not be

AWS CloudFront - forward User-Agent but don't cache against it

拥有回忆 提交于 2021-01-20 19:31:37
问题 I want my origin to be able to see the User-Agent header .e.g: Gecko/20100101 Firefox/62.0 not Amazon CloudFront . In the Behaviors tab I can whitelist User-Agent header, so it's passed to the origin correctly, however now CloudFront caches content per User-Agent , meaning that user visiting the CloudFront endpoint from different browsers forces CloudFront to go to the origin. Is there any way to configure CloudFront to pass some headers to the origin, but not necessarily cache against them?

How to setup a maintenance page in Amazon CloudFront /S3

蓝咒 提交于 2021-01-07 03:43:15
问题 I'm using AWS S3 for front-end web hosting and AWS EC2 for back-end hosting. The EC2 instance is behind an elb and has scheduled maintenance, and I want to display a maintenance page when the EC2 instance is under maintenance. The way that I set it up is to let index.html "touch" some files on EC2, if the server is unavailable it will return HTTP 503 error. There is a 503.html in S3 and I want to display it when 503 error happens. I've tried creating a new CloudFront Error Page and creating

How to setup a maintenance page in Amazon CloudFront /S3

泄露秘密 提交于 2021-01-07 03:43:06
问题 I'm using AWS S3 for front-end web hosting and AWS EC2 for back-end hosting. The EC2 instance is behind an elb and has scheduled maintenance, and I want to display a maintenance page when the EC2 instance is under maintenance. The way that I set it up is to let index.html "touch" some files on EC2, if the server is unavailable it will return HTTP 503 error. There is a 503.html in S3 and I want to display it when 503 error happens. I've tried creating a new CloudFront Error Page and creating

How to setup a maintenance page in Amazon CloudFront /S3

可紊 提交于 2021-01-07 03:42:32
问题 I'm using AWS S3 for front-end web hosting and AWS EC2 for back-end hosting. The EC2 instance is behind an elb and has scheduled maintenance, and I want to display a maintenance page when the EC2 instance is under maintenance. The way that I set it up is to let index.html "touch" some files on EC2, if the server is unavailable it will return HTTP 503 error. There is a 503.html in S3 and I want to display it when 503 error happens. I've tried creating a new CloudFront Error Page and creating

trigger lambda from a button in a static website in s3

邮差的信 提交于 2020-12-13 06:39:26
问题 I have this static website that has a form with a couple of fields. CloudFront is on front of the bucket routing traffic to the site. Them form in question naturally has a button that POST to '#'. Is there a way I could make the hits on the button trigger a lambda function with the content of the form's fields? Thanks in advance. 回答1: API Gateway is typically used to call the Lambda function from a Web Page. Here is a basic tutorial matching your architecture: https://aws.amazon.com/getting

trigger lambda from a button in a static website in s3

偶尔善良 提交于 2020-12-13 06:35:05
问题 I have this static website that has a form with a couple of fields. CloudFront is on front of the bucket routing traffic to the site. Them form in question naturally has a button that POST to '#'. Is there a way I could make the hits on the button trigger a lambda function with the content of the form's fields? Thanks in advance. 回答1: API Gateway is typically used to call the Lambda function from a Web Page. Here is a basic tutorial matching your architecture: https://aws.amazon.com/getting