Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [amazon-cloudfront]

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

-1
votes
0answers
17 views

Issue with the signed URL for CloudFront in AWS

I enabled signed URL in CloudFront. And tried to access S3 bucket files using signed URL which connects to this URL:'https://domain_of_cloudfront/file_name' and able to access individual objects from ...
0
votes
0answers
5 views

Where can I check Cloudfront “access denied” logs

Origin: S3 How can I check logs regarding "access denied"? For example, number of access denied requests in a day and such. So that I can debug. I am using signed url to let users access the ...
0
votes
0answers
9 views

Intermittent errors when loading static resources from AWS CloudFront

I'm getting some complaints where images, javascript and css files are not loading from my AWS CloudFront distribution. I know the server is handling the request without any issue because the DOM ...
1
vote
1answer
41 views

Cloudfront (w/ S3) Static Website Doesn't utilize index.html from sub directories

I have my website hosted on S3 with CloudFront as a CDN, and I need these two URLs to behave the same and to serve the index.html file within the directory: example.com/directory example.com/...
0
votes
0answers
98 views

Using Cloudfront as a reverse proxy

Original domain for which the distribution is set up for www.acme.com Set up an origin: Origin Domain Name: pre-prod.backend.com Origin Path: /abc/asset/acme Cache Behaviour Settings for the ...
0
votes
1answer
34 views

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 ...
0
votes
1answer
32 views

How to add the trailing slash in general for an Apache + CDN architecture (without using Apache mod_rewrite)?

I would like to add the trailing slash in general when it is absent in the request URL: when user requests https://example.com/blog, it should be redirected to https://example.com/blog/ when ...
0
votes
1answer
45 views

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 ...
0
votes
0answers
19 views

Jenkins with nginx on cloudfront

I have setup Jenkins on an EC2 instance with nginx as a reverse proxy. Then I went ahead and setup Cloudfront so I could get SSL and have a nice build.mydomain.com address. now when I go to build....
0
votes
1answer
317 views

AWS CloudFront Data Transfer Out

I want to use CloudFront to deliver files(each file size varies from 500 MB to 1 GB) for my users. Pricing for "Regional Data Transfer Out to Internet (per GB)" for India is mentioned as $0.170/GB. ...
4
votes
1answer
335 views

Is there a need for WAF in static website front with REST API?

I have two webistes www.mysite.com. -->hosted on s3 , served via Cloudfront static single page App. Then I have api.mysite.com , which the front end uses. My company is using WAF solution from ...
2
votes
1answer
40 views

Understanding AWS Cloudfront's origin access identifiers

I do not really understand the security behind AWS Cloudfront's OAI. The only thing it does is switch the bucket's domain. Instead of accessing the bucket with https://s3.amazonaws.com/[Bucket]/* it ...
1
vote
1answer
44 views

Difference between wildcard/no wildcard when invalidating a CloudFront distribution

The following is an example of a script that executes during our deployment process to invalidate a CloudFront distribution. The goal is to just invalidate everything in the entire distribution, so we ...
0
votes
1answer
25 views

AWS CloudFront - using custom domains

I am a bit confused by Amazons CloudFront pricing structure. So I want to use CloudFront to serve assets from my S3 bucket, with a domain like assets.domain.com and I want to use secured urls like ...
1
vote
1answer
264 views

Configure AWS Cloudfront to log to S3 bucket in another AWS account

I have some AWS Cloudfront distributions spread out across different AWS accounts. I'd like to store the access logs from these distributions in a single S3 bucket in a single AWS account. This is ...
1
vote
2answers
34 views

Releasing Elastic IP on EC2 had Cloudfront stop working

I had reached the limit of Elastic IP allocations in my AWS account. I have an Elastic Beanstalk app that is being served over Cloudfront. I thought since the app's CNAME was mapped to Cloudfront's ...
1
vote
1answer
307 views

Editable URL Rewrite Map for CloudFront/S3 Website using Lambda@Edge

I'm migrating a static website from IIS to Amazon S3, using CloudFront for https. The old site used the URL Rewrite module and had 301 redirect maps with over 200 entries. Here is an example: example....
0
votes
0answers
143 views

Cloudfront how to failover between multiple custom origins?

I have a Cloudfront distribution and two origin domains that are not hosted in AWS. I want to failover to the second domain if a file is not found in the first domain. I've created two behaviours, ...
2
votes
1answer
55 views

How to map subdomain in CloudFront to the same name in S3?

I have been searching for a way to do the following if someone can enlighten me would be greatly appreciated. e.g. would the following mappings be possible in a single CloudFront instance? feature-a....
0
votes
0answers
25 views

how to set up a waf via an amazon cloudfront cdn to an external site

I have a site hosted on a cloud foundry platform as a service. The PAAS does not come with a WAF out of the box and one of our security requirements is that we must have a WAF. Can I create an AWS ...
0
votes
0answers
36 views

How to block a request which does not has a header using Amazon Web Services

My application back-end was laid on AWS Lambda and exposing API's using API Gateway. And forntend on CloudFront. I want to block a request which does not has a header using AWS service. Can anyone ...
0
votes
0answers
25 views

AWS Cloudfront Distribution with Cross-region EC2 instances with HTTPS domain

I have same website setup(example.com) on 2 EC2 instances in Sydney & N.Virginia region. Site can only be accessed over https , so ssl cert installed on both EC2 instance. Now i want to improve ...
0
votes
0answers
80 views

CloudFront does not handle “Origin Path” and origin redirections well

With Cloudfront we can define an "Origin Path" different from "/". It is useful when having multiple folders on a single S3 bucket for example. Suppose you have many folders on a S3 bucket, websiteA, ...
0
votes
0answers
227 views

AWS Lambda: Using CORS & Lambda proxy to expose cloudfront signed cookies

I'm building a full javascript app from Salesforce.com API with no server side script that will be hosted on salesforce.com domain (https) This app should be able to grant access to multiple files ...
0
votes
1answer
283 views

CloudFront Signed URL : Access denied to “subfolders”

I've several objects on my S3 buckets "AwesomeBucket" : AwesomeBucket/Video/file.mp4 AwesomeBucket/Audio/file.mp3 AwesomeBucket/index.html AwesomeBucket/hello.html From a single cloudfront signed ...
0
votes
2answers
75 views

Any way to get CloudFront to accept single-part (top level) CNAME?

We have "go links" where I work, such as http://go.mycompany.com/foo which redirects to an arbitrary location. It's powered by a simple Python app on Google App Engine that keeps a mapping of keyword =...
0
votes
1answer
193 views

How do I limit S3 object access to CloudFront only?

TL;DR - How do I block requests for https://s3-eu-west-1.amazonaws.com/BUCKET-NAME/FILE.EXT while allowing requests coming via CloudFront? I followed the AWS documentation "Restricting Access to ...
0
votes
1answer
222 views

Cloudfront GoDaddy DNS - SSL Certificate Issues

I have a CloudFront distribution setup and working correctly. I also have an SSL certificate issued using ACM. My GoDaddy DNS has a CNAME entry for www which points to the cloudfront distribution ...
0
votes
0answers
116 views

Amazon S3 - Cloudfront - Images just randomly get permission denied

we have a very strange issue with the images on our websites. From time to time, some images get a permission denied response when our website is requested. These images are in a S3 bucket with ...
0
votes
1answer
30 views

Cloudformation Trouble with Parsing

I am having some issues w/ using CloudFormation and CloudFront. I have been using the AWS resources to form my template, found here "OpenVPNCloudFront" : { "Type" : "AWS::CloudFront::...
0
votes
1answer
184 views

Serve a static website on S3 via CloudFront and ACM SSL without Route53

There is a great write-up of what I consider a "standard" setup of a single-page app hosted on AWS: S3 Static Sites. It includes Deployment to S3 SSL certificate via ACM Distribution via CloudFront ...
0
votes
0answers
46 views

AWS CloudFront not caching S3 content

I am trying to learn CloudFront, but it seems my distribution is not caching data correctly. I have an S3 bucket in Tokyo (I am in North America). I am trying to access the following file with the ...
0
votes
1answer
299 views

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 ...
1
vote
2answers
47 views

Https configuration on AWS [closed]

I have an angular application hosted on aws s3, say example.com. The url is hosted on route53. You can access my website in non https here: http://proscorepad.com/ I created two repository that are ...
1
vote
0answers
169 views

The way AWS Lambda@Edge accesses to S3 restricted by Object Access Identity (OAI)

I have a question. Is the Lambda function (written in node.js) associated with CloudFront accessible to S3 objects restricted by Object Access Identity (OAI)? If yes, could you tell me how to access? (...
1
vote
1answer
396 views

cannot get aws cloudfront / route53 to resolve my domain name

I have setup a cloudfront distribution with SSL, pointing to a s3 bucket which is public and setup as a static website. I chose the option to redirect HTTP to HTTPS, as I want to force HTTPS. I ...
0
votes
0answers
53 views

Cloudfront EC2 Configuration working only for Root URL

I have configured an EC2 instance with Cloudfront to use SSL(from ACM). It works fine only for the root URL (example.com) but not for other URLs (example.com/page1). 502 Error : The request could ...
0
votes
1answer
197 views

How to configure HSTS redirect prerequisites using CloudFront?

The HSTS Preload List Submission website has very specific prerequisites which disallow combining protocol changes and redirects into one step (classic example - redirecting requests for http://...
0
votes
1answer
89 views

Bypass traffic on AWS WAF based on content-type

Is it possible to bypass WAF on Cloudfront if the request is fore statics files like images? This is a simple question, but one that has a big impact on operating cost. Because the charge of ...
0
votes
0answers
517 views

CloudFront HTTP/2 slower (high TTFB) than HTTP/1.1

My site was running on HTTP/1.1 with CloudFront at front, Webpagetest reports the load time usually at 2 seconds. Yesterday I enabled HTTP/2 (and SSL) on CloudFront, expecting to see an improvement. ...
1
vote
0answers
777 views

Cloudfront Access Denied, but only on certain files

I've read through several similar issues, but they differ in that This isn't a website, just CDN for images I have no subdirectories I was notified by our marketing dept that some of our photos ...
0
votes
1answer
797 views

CNAMEAlreadyExistsException when trying to add an alternate domain name to a cloudfront distribution

I have a cloudfront distribution (d123.cloudfront.com), which I am trying to add a cname for (static.dev.mysite.com). I have added a CNAME and TXT DNS entry as recommended on this AWS support page ...
-1
votes
1answer
605 views

what is the difference between amazon edge location and cloudfront? [closed]

How Amazon edgelocation and cloudfront relate to each other? I understand Both are used for reducing the latency and keep information (cache info)at the nearest location.
1
vote
1answer
2k views

How should I configure DNS for my GoDaddy domain with CloudFront?

I have a static web application being hosted in an S3 Bucket that I am currently hosting with Amazon CloudFront. It is a travel site, so I would like for users around the world to be able to quickly ...
2
votes
0answers
16 views

Proper way to handle file serving

We have a website where we our daily bandwidth use is roughly 10GB of user generated contents. The software layer is simply Heroku + some addons for DB and monitoring, and we are handling the uploads ...
2
votes
0answers
734 views

AWS CloudFront with API Gateway's Base Path Mapping for IPv6 support

We currently have some APIs set up in API Gateway, with a Custom Domain Name defined with a Regional Endpoint and Base Path Mappings that map incoming requests to the appropriate API and deployment ...
0
votes
1answer
431 views

Does basepath mapping create a CloudFront Distribution

Does basepath mapping on an API in API gateway use a 'hidden' cloudfront distribution? I have an API on API Gateway, with base path mappings on a domain. However, this doesn't go through cloudfront--...
11
votes
1answer
2k views

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 ...
0
votes
0answers
261 views

Cloudfront error 502

I'm trying to setup Cloudfront for my websites. It's the first time I work with cloudfront so I'm still tying to figure out how it all works. But at this moment I get the next error. cloudfront error ...
0
votes
1answer
674 views

Response from Cloudfront from S3 Origin keeps changing CORS Headers [duplicate]

here is my problem : CORS are set as supposed to be on the S3 : <CORSConfiguration> <CORSRule> <AllowedOrigin>*</AllowedOrigin> <AllowedMethod>GET</...