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.

0
votes
1answer
15 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
17 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
303 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
270 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
39 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
34 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
0answers
12 views

Cloudfront with s3 file updates

I have an EC2 server with a website that allows logged-in users to upload very large files via a form for later download (these files are placed in a non-public s3 bucket). I want to use Cloudfront ...
0
votes
1answer
21 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
141 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
24 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
172 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
89 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
37 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
24 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
35 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
15 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
39 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
182 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
212 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
49 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
138 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
153 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
99 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
23 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
136 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
42 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
202 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
46 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
135 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? (...
0
votes
1answer
257 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
41 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
165 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
76 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
430 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
643 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
581 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
390 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
1k 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
581 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
334 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
225 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
548 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</...
5
votes
1answer
129 views

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

AWS CloudFront Pricing for Uncachable Content

I am using AWS Cloudfront to cache static content (which is dynamically generated upstream). Some of the content is not worthy to cache publicly as it is very user-specific and it would be sufficient ...
1
vote
1answer
233 views

How long does it take for an AWS Certificate to update in a Cloudfront distribution?

I have an AWS Cloudfront distribution setup to use an ACM certificate. After updating the certificate, it seems it is not updating yet the certificate the distribution is using. I am guessing this ...
0
votes
1answer
364 views

Whether Cloudfront Origin can be a Route 53 recordset created for Application Load Balancer DNS?

I have created a A Route53 recordset for AWS application load balancer DNS. My question is whether AWS Cloudfront origin can contain this recordset url or not? For example: ALB DNS name: xxxx.us-...
0
votes
0answers
46 views

Synchronization issue between Cloudfront and origin

Can anyone tell me what entries I should give in godaddy DNS for site example.com? Issue: www.example.com is loading from cloudfront origin with ssl however, example.com is loading directly from ...
1
vote
1answer
86 views

Can AWS CloudFront be used without ec2 server

My wordpress websites are hosted on a different registrar's VPS server. My question is can i still use AWS Cloudfront for CDN?