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
6
votes
2 answers

Does Amazon CloudFront charge for storage?

I've been reviewing the features and prices of Amazon S3 and Amazon CloudFront as well as similar services offered by other providers. One thing I can't understand is why Amazon CloudFront pricing doesn't seem to have a cost for storage as the other…
user101340
6
votes
1 answer

I get a 403 when requesting a JS file from CloudFront

This is new to me so please excuse me if I have no idea what I'm talking about (: I'm trying to set up my own CDN with CloudFront and S3 through a subdomain by adding a CNAME to that subdomain to point to the CloudFront. It seems like I get a 403…
Roland
  • 163
  • 1
  • 1
  • 5
6
votes
1 answer

Does using CloudFront just to enable https make sense?

If I have an EC2 instance, running a web app (HTTP), and I have an Amazon-provided SSL certificate, I can use CloudFront to make the EC2 instance accessible via HTTPS, handling the certificate automatically. Is this a legitimate use of CloudFront,…
mitchus
  • 183
  • 6
6
votes
1 answer

AWS: How to redirect many domains to a page on another domain?

My objective I have a number of domains (e.g. 10 or 20) and I would like to redirect any visitors to anywhere on those pages to one page on another domain (for example my stackoverflow.com profile page). This includes apex domain using http (e.g.…
5
votes
0 answers

Multi-tenant (multi-domain / multi-certificate) on AWS Cloudfront

I have AWS CloudFront serving content (from EC2/etc), this works fine. The content I have is 'multi-tenant' in that it adjusts its branding/theme based on the domain being used. In theory I would just want to have a single CloudFront distro serving…
devlop
  • 151
  • 1
5
votes
1 answer

Should I use CloudFront in front of API/Web just because I want them on a single domain?

I typically develop my applications with frontend single page application on S3 and backend APIs on a server typically elastic beanstalk (so ELB + EC2). I am confused over what is a good choice to put in front of my ELB & S3 - mainly CloudFront or…
5
votes
1 answer

Send custom Host header with CloudFront

I have an ELB that I want to put behind CloudFront. Let's say the ELB is example.us-east-1.elb.amazonaws.com. It only accepts requests with the Host header set to www.example.com, which I now want to host with CloudFront. Is it possible to tell…
Carl
  • 153
  • 1
  • 1
  • 4
5
votes
1 answer

Blue/green deployment - AWS Cloudfront with ELB as custom origin

I have following configuration: Cloudfront - ELB - AutoScalingGroup - EC2s Cloudfront serves file-[hash].js files (with chunkhash in their names) from custom origin (ELB). EC2s serve the file-[hash].js files for Cloudfront plus dynamically…
mgr32
  • 183
  • 4
5
votes
1 answer

How do I route Cloudfront with multiple origins?

So I have 2 Wordpress sites hosted as such http://siteA.mydomain.com http://siteB.mydomain.com I have a distribution created that has the 2 domains above as the origin. siteA.mydomain.com siteB.mydomain.com I'm not sure how to configure the…
resting
  • 1,059
  • 2
  • 10
  • 10
5
votes
2 answers

Webstats for large Amazon S3/Cloudfront logs?

I'm trying to find a way to parse our Amazon S3 access logs to get some webstats. I've been trying to use AWStats 7, but I got to the point of where after day 9 of a given month it can't process any more logs because it runs out of memory. This…
Mxx
  • 2,312
  • 2
  • 26
  • 40
5
votes
2 answers

How to restrict access just to cloudfront from a custom origin server?

if i understood well, in order to create a custom origin distribution, I need to make public those files on my custom origin server. In my case, that will be put those files into a public dir of an apache server. My question is, is it possible to…
Simon
  • 855
  • 2
  • 12
  • 22
4
votes
1 answer

AWS Lambda, AWS API Gateway, AWS Cloudfront gives 403 error

I run a Django project deployed on AWS lambda using serverless Zappa framework. This can be accessed by a randomly generated link from AWS API Gateway lets say:- randomly-generated-link.aws.amazon.com/production I have also created an SSL…
4
votes
1 answer

Setting "Object Caching" on CloudFront

I want to set the "Object Caching" of my CloudFront distribution with S3 origin to "Customize". I follow these steps on the console: go to the "behavior" tab of the relevant distribution "Edit Behavior" of the relevant behavior(s) change the radio…
chrisvdb
  • 1,199
  • 2
  • 10
  • 15
4
votes
3 answers

Problems with Gzip compression on Amazon CloudFront

I had a CloudFront distribution configured with S3 as an origin. I have enabled "Compress Objects Automatically" as per Amazon guide. Waited for the distribution status to display "online" then invalidated all files. My Response headers…
Lukigi
  • 151
  • 1
  • 5
4
votes
1 answer

Cloudfront HTTP2 css, js slow Time to First Byte even with cache HIT

I have a website hosted on EC2 with most css, JS and images loaded from Cloudfront. There is a consistent problem that even small css and js files have 1-2 seconds time to first byte, even where there is a cache hit on Cloudfront. Here is a…
jdog
  • 111
  • 4
  • 28
1 2
3
24 25