Questions tagged [amazon-cloudfront]

Amazon CloudFront is a content delivery network (CDN) offered by Amazon Web Services.

Amazon CloudFront is a content delivery network (CDN) offered by Amazon Web Services.

Official page

398 questions
4
votes
1 answer

How can I limit CloudFront downloads

I'm looking to use Amazon's CloudFront to host some content in the near future. Currently, I'm keeping it very simple and I'm just uploading my content to S3 and then making a distribution available via Cloudfront. However, because I have a limited…
4
votes
0 answers

Overriding AWS ALB's default error page(s) with custom one(s) using CloudFront

I have an ALB, containing Rules that forward requests to my private EC2s, hosted on AWS, and when I make a new deployment, I have a script in Lambda that turns off my ASGs and turns them back on. During this period when the ASGs are down and I try…
G. ILL
  • 41
  • 1
  • 3
3
votes
1 answer

Will Route 53 geolocation routing behind CloudFront operate on users or edge location?

If I've got CloudFront set up with the origin being an address in Route 53, and geolocation routing for record in Route 53, will Route 53 do the geolocation based on the CloudFront edge location IP or the end user's IP?
3
votes
1 answer

Redirect with CloudFront but changing URL

I have an S3 static website and I want to redirect all the requests to the index page. So if you go to mysite.com/this_doesnt_exist it should redirect to mysite.com. I was able to configure this behavior with a Custom Error Response like the one on…
fsinisi90
  • 165
  • 2
  • 8
3
votes
1 answer

How do I connect Cloudfront to a private s3 bucket with terraform?

So I'm 90 percent there, but it appears that cloudfront is getting 500 errors from s3? I'm sure I'm just doing something wrong. I've read the various amazon documentation, but to me it seems so vague as to perhaps be useless. resource…
3
votes
1 answer

Why CloudFront does not return Access-Control-Allow-Origin?

I'm trying to figure out why cloudfront distribution does not cache / send through access-control-allow-origin. When I curl my website: HTTP/1.1 200 OK Date: Sat, 03 Mar 2018 07:42:01 GMT Content-Type: application/font-woff2 Content-Length:…
user1371169
  • 31
  • 1
  • 3
3
votes
3 answers

AWS: Redirect one subdomain to another (http and https)

During a production launch I need one subdomain, beta.foo.bar.com, to begin redirecting all requests to foo.bar.com. AWS suggests using an S3 bucket set up for static website hosting and configured to redirect all requests to another domain. This…
3
votes
1 answer

Route53 subdomain not resolved with nslookup

My problem I am trying to build a personal CDN to share static file with my contacts. The design includes an S3 bucket, a CloudFront distribution and a subdomain registered via Route53, all configured using Terraform. However, I can reach my files…
Adam Matan
  • 13,194
  • 19
  • 55
  • 75
3
votes
1 answer

How to use Let's Encrypt with both EC2 and Cloudfront?

I want to use Let's Encrypt certificates for both EC2 and Cloudfront. I am creating a wordpress installation EC2 t2.micro using Ubuntu 16.04(HVM) AMI and nginx. EC2 region will be us-east-2 (Ohio). I can create Let's Encrypt cert using the certbot…
3
votes
0 answers

AWS SSL Certificate without Load-Balancer?

I have a standard Elastic Beanstalk app set up and running great over HTTP. Following the AWS Documentation I requested an SSL Certificate and configured it with CloudFront. Instead of a load-balancer I am adding an ingress rule to the…
3
votes
2 answers

AWS API Gateway Custom Domain: the domain you provided is already associated with an existing CloudFront distribution

I'm simply attempting to set up a Custom Domain in API Gateway. I have ACM certificate "*.mysite.com.au" that is currently being used to serve a static S3 website out via CloudFront at "beta.mysite.com.au". I wish to create a custom domain for…
3
votes
2 answers

Unable to add custom headers to CloudFront distribution - using s3 as backend

We are trying to put some custom headers to our cloud fount distribution, but its not working as expected. Following is the scenario. We have a s3 bucket named "example-images" with all static contents, s3 bucket is exposed for public access. Has…
vasco.debian
  • 306
  • 2
  • 13
3
votes
1 answer

HTTPS connection between Cloudfront and S3?

I've setup a static website on Amazon S3. I also wanted a SSL certificate for my custom domain name, so I had to setup ACM + Cloudfront as well. This is working fine (connections between Cloudfront and clients are encrypted), but there is a detail…
eang
  • 131
  • 2
3
votes
1 answer

openssl tool cannot get certificate from CloudFront, does anyone know why?

I'm writing a script to check the SSL expiry dates of all my domains. This works for my normal sites: echo | openssl s_client -connect $domain:443 2> /dev/null | openssl x509 -noout -enddate However it does not work for AWS CloudFront. I have…
3
votes
1 answer

Amazon CloudFront CORS specific delay

I am experiencing a delay between the serving of CORS requests but direct requests are served fine. I am using this to distribute media streams via HTTP so it is very important to reduce the startup delay. There is approximately 90-180 seconds…