Questions tagged [amazon-cloudfront]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
116 views

Is AWS CloudFront useful if I need to serve just one region?

We are serving videos from a S3 bucket(in Mumbai) to users in a single region(India). We expect thousands of users to access these files only from India. Is it worth to have a CloudFront distribution? ...
0
votes
1answer
2k views

Configure AWS Cloudfront Path Pattern workaround for Regular Expression

From what it appears, Cloudfront Path Pattern doesn't support complete regex. What I want to achieve is to separate the requests /[a-z]* from the requests /[a-z]/.+ to different origins. So, a ...
0
votes
1answer
519 views

IPv6: can't resolve host on Route 53 backed by CloudFront

I use AWS Route 53 in front of a CloudFront web distribution. I'm trying to add IPv6 support for my CF distribution. Following the AWS docs on enabling IPv6 for Route 53, I added a AAAA record that ...
0
votes
1answer
924 views

Subdomain from different S3 bucket on same cloudfront distribution

I have example.com served from idxxxx.cloudfront.net, this goes to S3 bucket nr 1. This works well. I now need subdomain.example.com to also be served from same cloudfront distribution, and point to ...
0
votes
1answer
67 views

CloudFront Block Access

I'm testing out the CloudFront CDN but noticed that it will load the complete site. Is there a way to only allow the CDN to serve request that start with /media/* ? I created a seperate behavior ...
0
votes
1answer
940 views

Amazon Cloudfront Geo restriction does not block traffic or just Tor traffic

I am trying to use Amazon AWS Cloudfront Geo to whitelist few specific countries and block access from anywhere else. So far I did this: 1) enabled Geo restriction on the Cloudfront distribution in a ...
0
votes
2answers
155 views

Distributed large file hosting

We're hosting software installers (~60Mb) on S3 and serve them through CloudFront. We noticed that files non-being downloaded frequently get wiped from the CF cache and thus download slower than usual....
0
votes
1answer
24 views

How to route `/username/app#app-state` in CloudFront / S3

I have a web app, and I have path patterns that start with usernames, and the have the app and app state (or view). Like this: example.com/username/app#list-view Where the username will vary across ...
0
votes
1answer
8k views

Cloudfront returns 403 for a minute after upload

I have a cloudfront distribution in front of an s3 bucket. Cloudfront urls are restricted, and keys must be url signed. The s3 bucket is also restricted, allowing only cloudfront to read Sometimes, ...
0
votes
2answers
783 views

Avoid dynamic HTML pages on Amazon CloudFront CDN

I am thinking of using CloudFront distribution as CDN to server my images, css and js. I have a CloudFront distribution setup to point to the same directory in the server where my code is, just ...
0
votes
1answer
610 views

Serve two static S3 websites from the same domain, based on geolocation

My current setup is that www.domain.com serves an S3-hosted static website via CloudFront, so www.domain.com CNAME points to the CloudFront distribution, which in turn points to the S3 static website ...
0
votes
1answer
54 views

SSL on CloudFront fails test

I'm hosting a static website on S3/Cloudfront. I have enabled SSL using an Amazon provided SSL certificate. Unfortunately, the setup seems to be failing the SSL tests. Any idea what could cause this?...
0
votes
1answer
261 views

Use SSL/SNI when uploading to S3 bucket from browser

My site allows users to upload files. We upload them directly to S3 using the typical Javascript+POST+Signature. This works well, but some local networks object to the CORS request - users have a ...
0
votes
1answer
1k views

redirect non www to www for static website hosting using cloudfront

I have searched almost everywhere on how to redirect with cloudfront. I created an s3 bucket for static website hosting and even used their redirect there BUT because i am not serving whole website ...
0
votes
2answers
1k views

Can I hide S3 and Cloudfront endpoints?

I have setup a static website on AWS S3 and am accelerating it with AWS Cloudfront, but after, I am able to use AWS Route53 to connect my domain name to the Cloudfront endpoint. Now there are two ...
0
votes
1answer
2k views

How to disable Last-Modified and ETag headers in a static website hosted on S3 + CloudFront?

Background: there are good reasons to want to disable Last-Modified and ETag headers for some website assets: to prevent browsers sending conditional requests (either using If-Modified-Since or If-...
0
votes
1answer
3k views

EC2 with AWS CloudFront?

IN SHORT How do I connect to the nearest EC2 instances using CloudFront to achive geolocation based Content Distribution? I want to do a geo-location based content distribution, so that the end user ...
0
votes
2answers
3k views

Getting cloudfront logs into logstash: ERROR: is not a legal argument to this wrapper, cause it doesn't respond to “read”

Logstash version 1.5.0.1 I am trying to use the logstash s3 input plugin to download cloudfront logs and the cloudfront codec plugin to filter the stream. I installed the cloudfront codec with bin/...
0
votes
1answer
1k views

How to stop s3 from listing some of the content?

It is an example. What setting of S3 causes the s3 server to a listing of bucket content? EDIT: I have followed Céline Aussourd's answer and turned off the list of the s3 bucket. But ...
0
votes
1answer
3k views

Origin access identity and S3 permission

From http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html , I have already created an OAI, as shown in this screenshot Am I supposed to grant the permission to the ...
0
votes
1answer
1k views

Is whitelisting a CNAME enough?

We are working on setting up a list of domain names we need to have whitelisted for educational institutions who use our site. We are using AWS S3 as well as cloudfront. In our cloud front, we ...
0
votes
1answer
185 views

CloudFront cache limit

Say I am serving 3 million requests of static and dynamic images per month from an EC2 machine (origin), and each image is about 15 KB, and my guess is that the approximate amount stored in the ...
0
votes
1answer
87 views

AWS CloudFront Traffic Not Reaching EC2 Instance

I've got an API app on EC2 that only knows HTTP, and it's listening on port 8080. Its code does not return 504 for any request. I need CloudFront to be an SSL-Terminating reverse proxy because the app ...
0
votes
0answers
16 views

Traffic handling capacity for 1 EC2 instance for t3.2xlarge [duplicate]

Protocol exchange between phone server and IOT device(inter regional). say there are 100000 users and each are requesting or using 12 - 20 times a day may be approximately at the same time(protocols ...
0
votes
1answer
44 views

How to route to Cloudfront+s3 and rest to ALB in Route53?

The project has a domain name foobar.com pointing to a legacy system, hosting and serving mainly static files. The project got more complex over time and in AWS ALB certain /routes are pointed to ...
0
votes
0answers
31 views

Same-Origin Policy : configuring CloudFront static content to communicate with dynamic backend?

I am currently hosting a static single-page web application with AWS CloudFront. I would like to add a backend service for my web ui/client to communicate with so that I can serve dynamic content. ...
0
votes
1answer
28 views

Amazon CloudFront default SSL certificate for multiple domain names

A few years ago I setup an S3 bucket and enabled hosting. It's got an index.html file, which I use as a simple landing page. I then setup AWS CloudFront to use this S3 bucket as an origin server and ...
0
votes
0answers
32 views

How to make Cloudfront pick up html files from S3 when request does not end in html

Our static website is stored on S3 and distributed via Cloudfront. The S3 file <S3-bucket>/foo/bar.html can be accessed at www.example.com/foo/bar.html but not at www.example.com/foo/bar (...
0
votes
0answers
26 views

AWS s3 image access is showing access denied while requesting the image through cloudfront

{ "Version": "2012-10-17", "Id": "Policy1548751526201", "Statement": [ { "Sid": "Stmt1548751524478", "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::...
0
votes
0answers
22 views

AWS CloudFront OAI with S3 Origin not logging GetObject in CloudTrail

As the subject line mentions. I have an S3 Website bucket which has only 1 policy allowing the CloudFront distribution's OAI that it is tethered, to have the "GetObject" action on all objects within ...
0
votes
0answers
50 views

AWS Cognito Hosted UI Bypasses WAF

I have an S3 hosted site behind a Cloudfront and WAF. I set up a Cognito hosted UI with a custom domain (auth.example.com where example.com is my site). Cognito generates a Cloudfront distribution ...
0
votes
1answer
11 views

Base64 images not showing in drupal website after integration with cloudfront

I am receiving some issues on Drupal. I have integrated Amazon cloudfront with Drupal. The Cloudfront origin for my domain is drupal.example.com and Cnames are www.example.com and example.com. The ...
0
votes
1answer
83 views

Connect AWS SSL certificate to Intercom Articles

We have our support articles in Intercom Articles and need to attach a SSL certificate to the subdomain support.packaly.com. Intercom does not offer its own certificate so we need to do it through AWS....
0
votes
1answer
42 views

How proxy all request that comes to some path like “/app*” to an EC2 instance using Cloudfront?

Right now I have a site hosted in S3 and delivery through Cloudfront and I have an application running on an EC2 instance. the problem is I need to serve the application using a folder in the domain ...
0
votes
1answer
62 views

Why do cloundfront signed urls and cookies require account root? [closed]

According to this documentation for generating key pairs for use with Cloudfront Signed URLs and Signed Cookies root credentials are required to either generate or upload key pairs. Other key pairs ...
0
votes
1answer
23 views

Can I add HubSpot's blog as origin in my CloudFront distribution?

Let's pretend example.com is my domain. I'd like to have: HubSpot's provided landing page at example.com/ HubSpot's provided blog at example.com/blog/ my website hosted on AWS S3 at example.com/map/ ...
0
votes
1answer
87 views

CloudFront drops Access-Control-Expose-Headers header when Accept-Encoding is set

I am trying to get CloudFront to serve a gzipped text file along with Content-Length: <bytes> and Access-Control-Expose-Headers: Content-Length headers so I can display the download progress ...
0
votes
0answers
43 views

How to configure Cloudfront for API Gateway with API key enabled?

I configured two API Gateways one with API-key enabled and the other with API-key disabled. For both the API gateways I configured and enabled CloudFront. For the API-gateway which has API-key ...
0
votes
0answers
59 views

How do I solve a CNAMEAlreadyExists error?

I'm trying to deploy a next.js app to AWS using serverless. However, when I try to deploy, I get this error: Serverless Error --------------------------------------- An error occurred: ...
0
votes
0answers
17 views

How to fix below-cloudfront distribution update error

I was trying to update cloudfront distribution(disable/remove OriginSSLprotocol:SSLv3) using below commands aws cloudfront get-distribution-config --id E29BDBENPXM1VE | jq 'del(.DistributionConfig....
0
votes
0answers
51 views

CloudFront Reverse Proxy - The specified CGI application encountered an error and the server terminated the process

I have a Wordpress website sat at something.example.com that all works fine, no problems whatsoever. We need this website to be accessible via example.com/something which is a reverse proxy from AWS ...
0
votes
1answer
39 views

Auto redirect Amazon CloudFront content from www to non-www

I'm really new to Amazon CloudFront. I have set up an S3 with Cloudfront, then I'm using a custom domain that I setup in CloudFlare. I can access my photo normally with this kind of link : https://...
0
votes
0answers
43 views

AWS Cloudfront Usecase: Geolocation For Web App With Cookies and Query String Params

I want to make sure I have the correct usecase for AWS Cloudfront. Typically I believe it is used to cache static assets, such as those put in AWS S3 storage. For example, it may end up looking like ...
0
votes
0answers
119 views

Cloudfront with Nginx 302 redirect - resolve internally

Currently, We have hosted our application on two different paths, App1: https://website.wordpress.com [EC2 with Nginx] App2: https://poc.angularApp.com/ [Hosted in AWS S3 with Coludfront] My ...
0
votes
0answers
27 views

Give permission only to CloudFront to access AWS S3 website

Is there a way restrict access to S3 website? If one has website enabled S3 like this one: mywebsite.s3-website-eu-west-1.amazonaws.com? I have been reading that one could use custom headers to ...
0
votes
1answer
72 views

CloudFront - Much higher miss-rate in North America compared to Europe

I'm serving my software downloads from CloudFront. Miss-rate in North America is much higher than in Europe. In America miss-rate is 55.7% while in Europe it's 19.69%. North America: Europe: The ...
0
votes
0answers
222 views

How to have cloudfront distribution listen on custom port for HTTPS?

I have setup a Cloudfront distribution on AWS with custom domain name to fetch firmware update file from S3. However, the existing devices that we have with customers make an HTTPS request to that ...
0
votes
0answers
55 views

CloudFront / S3 returning 404 when no trailing slash

Here is my subdirectory setup www.example.com www.example.com/blog ---- index.html ---- etc. When I visit www.example.com/blog/ (note the trailing slash), it serves index.html just fine. However, ...
0
votes
0answers
55 views

Origin Access Identity alongside AWS Signature Version 4

Given a Cloudfront instance acting as a web distribution for an S3 bucket, what's the recommended approach to a public GET, authorised PUT? Is it possible to use a combination of Origin Access ...
0
votes
0answers
84 views

Use AWS Cloudfront to forward to Wordpress site in subfolder

We use AWS S3 for hosting our React website. On top of it there is a Cloudfront distribution, which points our custom domain name https://www.mycompany.com to the mentioned website. Now, our ...