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

373 questions
148
votes
7 answers

Amazon Cloudfront with S3. Access Denied

We're trying to distribute out S3 buckets via Cloudfront but for some reason the only response is an AccessDenied XML document like the following: AccessDenied Access Denied
50
votes
7 answers

Chrome S3 Cloudfront: No 'Access-Control-Allow-Origin' header on initial XHR request

I have a webpage (https://smartystreets.com/contact) that uses jQuery to load some SVG files from S3 through the CloudFront CDN. In Chrome I will open an Incognito window as well as the console. Then I will load the page. As the page loads, I will…
SunSparc
  • 968
  • 3
  • 10
  • 23
34
votes
2 answers

No Cache-Control Header for files from AWS CloudFront with S3 Origin

We just migrated to Amazon AWS. We currently have an EC2 instance that's working well. It's running Nginx in front and Apache in the back-end. That's running well also. All sites are launched properly and includes the Cache-Control header for files…
jarvis
  • 1,956
  • 4
  • 17
  • 31
26
votes
4 answers

Setting Access-Control-Allow-Origin on Cloudfront

I am having problems serving static assets to Firefox using AWS Cloudfront. Chrome works perfect, but Firefox is returning a CORS error. If I execute curl , I get: HTTP/1.1 200 OK Content-Type: application/x-font-opentype Content-Length:…
Tony
  • 425
  • 2
  • 5
  • 14
26
votes
4 answers

Why S3 website redirect location is not followed by CloudFront?

I have a website hosted on Amazon S3. It is the new version of an old website hosted on WordPress. I have set up some files with the metadata Website Redirect Locationto handle old location and redirect them to the new website pages. For example: I…
Yannick Chaze
  • 408
  • 1
  • 4
  • 8
24
votes
5 answers

Blue/Green deployments with CloudFront

I'm looking for a way to do Blue/Green deployments with CloudFront. Does anyone have a good solution for moving from one CloudFront distribution to another or does everyone really just create their distribution and then never ever touch it again?…
Peter M
  • 953
  • 2
  • 14
  • 27
17
votes
1 answer

What is an Amazon Route53 "Alias" DNS record?

AWS Route53 Alias value Consider a domain registered on AWS Route53. HTTP requests to this domain should be served from a AWS CloudFront CDN distribution. In order to achieve this, an alias A record is defined: dig results However, dig results…
15
votes
3 answers

How can I use https with AWS Cloudfront without paying $600 to upload my cert?

I can host a dynamic website through Amazon CloudFront because they have CNAME Wildcard Support. However, some pages of my Site use HTTPS. Amazon have some documentation about how to associate your SSL certificate with a CloudFront distribution but…
Tom
  • 4,157
  • 11
  • 41
  • 52
14
votes
5 answers

HSTS on Amazon CloudFront from S3 origin

Is it possible to set HSTS headers on an Amazon CloudFront distribution from a S3 origin?
chrisvdb
  • 1,199
  • 2
  • 10
  • 15
14
votes
3 answers

Forcing CloudFront to pass-through the latest HTML file from S3

Background I'm hosting a static site on S3, with CloudFront over the top. The issue I have is with my HTML files. According to CloudFront's FAQ: Amazon CloudFront uses these cache control headers to determine how frequently it needs to check the…
isNaN1247
  • 1,615
  • 3
  • 15
  • 20
12
votes
1 answer

Any drawbacks to AWS certificate manager wildcard certificates?

Let's say I'm using AWS Certificate Manager to get a certificate for example.com for use with AWS CloudFront. I can specify an alternate domain of www.example.com and point it to another CloudFront distribution in my DNS. But AWS Certificate Manager…
11
votes
3 answers

Amazon Cloudfront with S3 Redirect

I'm trying to do something that should be relatively straight-forward - I want to setup a few domains and subdomains to redirect to the core domain for our site, but I want to put the redirects out on Cloudfront. Everything works except redirecting…
Chris Moschini
  • 469
  • 1
  • 8
  • 16
9
votes
1 answer

Is it possible to avoid costs for invalid requests at AWS S3 or cloudfront during a DDoS attack?

There are many tutorials in the internet, that promote cheap hosting of static websites via AWS S3 + AWS Cloudfront (+ Cloudflare). Example of these would be: Host a website using S3, CloudFront and CloudFlare How to host a website on S3? I was…
9
votes
1 answer

Serving website from Cloudfront and S3 without public bucket

When serving a website via CloudFront from an S3 bucket, I would typically apply the following Bucket Policy to allow access to my files: { "Version": "2012-10-17", "Statement": [ { "Sid": "Allow Public Access to All…
Steve
  • 191
  • 1
  • 3
9
votes
4 answers

How can I use AWS CloudFront and API Gateway side by side for the same domain?

I'm putting that static assets of my website on S3, and setting up CloudFront to distribute them. These essentially holds the content users would need for any GET request on my site, to existing paths that is, with a catchall for errors. I also have…
1
2 3
24 25