Questions tagged [amazon-cloudfront]
Amazon CloudFront is a content delivery network (CDN) offered by Amazon Web Services.
374
questions
0
votes
0
answers
14
views
GoDaddy/DNS Configurations for AWS CloudFront
I have a domain called, say, example.com. I have an S3-backed CloudFront distribution with a domain name of, say, 12345.cloudfront.net. I am using GoDaddy as my registrar, not Route53.
What specific ...
0
votes
0
answers
13
views
Hosting HTTPS/TLS static site on CloudFront/S3
I have a static website that I want served from CloudFront/S3 over HTTPS. I created the public SSL cert in ACM and validated the DNS by adding the appropriate CNAME records (we use GoDaddy, not ...
0
votes
0
answers
7
views
switch S3 origin path instead of switching origin domain
Someone help me with below case and share a simple and best approach to achieve this goal.
I have one s3 bucket and bucket have two folder Like V1 and V2. And two cloud front URLs ( Assume my blue ...
-1
votes
0
answers
19
views
I want to use blue green deployment with s3 cloudfront and route 53
I am using a website hosted in cloudfront with S3 origin. anyone help me how can i achieve this goal.
0
votes
0
answers
15
views
Redirection for WP website
We have a WP website in an EC2 instance. Over that, we have a CloudFront distribution which is serving the DNS requests. At times we face the website error - redirected too many times. While checking ...
0
votes
0
answers
47
views
Amazon Lightsail + CDN 502 Error
I have gone through all of the various posts here about the issue as well as gone through this link and still can't solve the problem.
Using Amazon's Lightsail and Amazon Linux 2, I tried setting up a ...
0
votes
0
answers
100
views
How does a CloudFront cache behavior's "Path Pattern" interact with the origin's "Origin Path"?
I have an origin that looks like this: "https://myS3Bucket.s3/static/ui/v1.0.0". This origin has an "Origin Path" that is "/v1.0.0", and the cache behavior associated ...
0
votes
0
answers
94
views
nginx how to replace try_files with proxy_pass having multiple paths
I have a set of rules in Nginx of this type:
location ~ ^/race/[a-z0-9\-_]*/session/[a-z0-9\-]*/topic/[a-z0-9\-_]*$ {
try_files $uri $uri/ /race/period/session/team/topic/index.html;
}
location /...
1
vote
0
answers
64
views
Amazon OpenSearch Service stably or less downtime?
Can anyone point out, What is the best way for the elastic search to run stably? We frequently get messages about it requiring updates and that an update requires some downtime.
Could we have 2 ...
0
votes
0
answers
217
views
AWS CloudFront error 502 connecting to EC2 host
Community
I have a web page served by Apache running on a EC2 AWS instance. I am using AWS Certificate Manager with CloudFront to manage SSL/TLS in order to access the web page using HTTPS
My ...
0
votes
0
answers
158
views
Setting up CloudFront with SSL/TLS certificate and EC2 instance
Community.
I have a web page served by Apache running on a EC2 AWS instance. I am using AWS Certificate Manager with CloudFront to manage SSL/TLS in order to access the web page using HTTPS
My ...
0
votes
1
answer
108
views
DDOS AWS API Gateway protection
I have publicly exposed API Gateway (HTTP). To authenticate you have to provide a valid JWT.
I want to secure this APIGW with Cloudfront + WAF. After reading docs I think that API Gateway endpoint is ...
0
votes
0
answers
36
views
ALB instead of Cloudfront in front of single server web app
AWS Recommends adding cloudfront in front of single server applications for security and performance see https://aws.amazon.com/blogs/networking-and-content-delivery/dynamic-whole-site-delivery-with-...
3
votes
0
answers
319
views
OPTIONS request to CloudFront distribution with managed CORS-With-Preflight policy returns 403
I have a CloudFront distribution with a default behavior that is configured to allow any CORS request including preflight requests. However, the OPTIONS request will fail with an HTTP 403 error (...
0
votes
1
answer
25
views
influxdb connect to cloudfront aws
Just installed influxdb on fedora server 35 with this repo :
https://repos.influxdata.com/rhel/8/x86_64/stable/
every time i restart the service influxdb (default conf) it connects to random ip on ...
0
votes
0
answers
35
views
block public access to the AWS Elastic Beanstalk URL
I have a node.js app running on AWS Elastic Beanstalk. I have setup a domain pointing to a CDN distribution which is pointing to the EBS. But the web app is also accessible via the EBS URL directly. I ...
1
vote
1
answer
94
views
Cloudfront security headers causes CORS issues
I have two different Vue.JS apps deployed to AWS S3 + Cloudfront. The first has the domain set up in Route53, while the second has the domain set up in Google's domain service.
Both of the apps works ...
2
votes
1
answer
289
views
What is the difference between S3 Multi-Region Access Points and AWS CloudFront?
Can anyone explain the difference between S3 Multi-Region Access Points and AWS CloudFront?
The documentation for a multi-region access point states:
Multi-Region Access Points offer a global S3 ...
1
vote
1
answer
349
views
CloudFront does not seem to invoke lambda@edge function
I have a CloudFront distribution. The origin is an S3 bucket that uses OAI.
I have created a lambda@edge function following directions from https://aws.amazon.com/blogs/compute/implementing-default-...
0
votes
0
answers
32
views
Image Storage Options In AWS
In the case of my scenario, The loading issue seems to have been caused by making HTTP requests with no HTTP timeout set to our CDN. The synchronous requests held the page execution for many minutes ...
0
votes
0
answers
718
views
CloudFront gives 403 error when accessing a web app hosted outside AWS through the configured subdomain
I've been tasked with setting up our web app on CloudFront. Our web app is hosted on an Ubuntu server that is completely outside AWS.
I have little to no experience with CDNs, but I've made some ...
1
vote
0
answers
366
views
CloudFront CORS request using signed cookies and withCredentials, not sending back Access-Control-Allow-Credentials unless I include some extra header
I'm having a very strange issue that I can't seem to crack. I configured a private CloudFront distribution to serve content from a private S3 bucket. I am using signed cookies to grant access to the ...
0
votes
0
answers
216
views
Is there a workaround to use cloudflare origin certificate in aws cloudfront?
I have imported the Cloudflare origin server certificate in AWS Certificate Manager.
On configuring that certificate in Cloudfront i get the following error:
The certificate that is attached to your ...
0
votes
1
answer
25
views
Sending push notification to s3 origin website from lambda
I want to send a websockets notification from lambda function to clients, on a website hosted via s3 origin with cloudfront.
Could someone help me with this, please? Thanks.
0
votes
1
answer
304
views
Why is a post/upload of a 100k JSON file to an AWS CloudFront endpoint resulting in 504 error?
On a wordpress site, we have requests coming in to CloudFront, which sends the request to origin (if necessary) which goes through an ELB, and to two or three instances that will service the request.
...
0
votes
2
answers
348
views
Redirect domain root to CloudFront with nginx?
Note - I see several other questions asking about redirecting to the root of their S3 static websites, but I didn't see anything about redirecting from the root of a domain name to a CloudFront/S3 ...
0
votes
1
answer
37
views
aws cloudfront custom ssl pricing for subdomain and www
I have created two s3 origin website linked with cloudfront and used acm certificate.
But I recently found out pricing are different between https://admin.example.com and https://www.example.com.
www....
0
votes
0
answers
83
views
CloudFront delivery is slow in particular location
In our scenario, I found that our CloudFront delivery particularly in the Japan area is very slow for a few days. which lead our site to become slow in the time of loading the media contents .our s3 ...
2
votes
1
answer
214
views
Cloudfront caching resources even though response headers should prevent it
I have recently setup a Cloudfront distribution with the following behaviour cache policy:
TTL settings:
Minimum TTL (seconds): 0
Maximum TTL (seconds): 31536000
Default TTL (seconds): 0
Cache Keys:...
0
votes
1
answer
81
views
AWS architecture - traffic mirroring
We are going to migrate our database from Aurora Serverless to Aurora Cluster. Before that, we'd like to test the performance of the new database in a real-time traffic scenario. We have thought about ...
0
votes
2
answers
275
views
AWS S3 Static Website vs CloudFront OIA
It seems there are kind of two ways to host a static website on S3/CloudFront.
Create S3 bucket with full public access and Static Website set to Enabled + CloudFront config
Create S3 bucket with no ...
0
votes
0
answers
166
views
How can I ensure DNS changes take effect within TTL, even when browser reuses HTTP connections?
I am helping implement CloudFront CDN for an NGINX HLS video origin. If you're not familiar, HLS in the browser just uses XHR or fetch to constantly request .m3u8 and .ts files via HTTP and display ...
0
votes
0
answers
41
views
Serve content from cloudfront as webserver
I have an application running on a Kubernetes pod at example.com, I would like to be able to serve the assets in our CloudFront distribution from this same domain, i.e.: example.com/assets. We have ...
0
votes
2
answers
251
views
A record in Route 53 doesn't resolve
I added an A record in my Route 53 hosted zone pointing to the CloudFront. But for some reason, it doesn't work.
When I do dig mywebsite.com
I get
; <<>> DiG 9.16.1-Ubuntu <<>>...
1
vote
0
answers
504
views
Can CloudFront handle repeated headers?
According to this answer, you can have multiple headers for certain headers, such as Cache-Control.
Will CloudFront respect both times that Cache-Control appears? For example, if the Origin were to ...
2
votes
2
answers
629
views
Can't point my subdomain address to CloudFront distribution (using S3 + CF + Route 53)
[Jump to bottom to see updates and latest attempts]
First of all, I apologize if I misuse terminology here. I work as FE developer and this area on networking and setting up domains and aws services ...
0
votes
0
answers
38
views
AWS/S3/Cloudfront/GoDadday and subdomains
I am wondering and hoping this is possible.
On AWS I have two s3 buckets to separate a client facing application and an administrative application
mysite-app
mysite-admin
I have a cloudfront ...
5
votes
1
answer
1k
views
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 ...
0
votes
1
answer
56
views
Deploying a Serverless site behind CloudFront
I use Serverless to deploy a website to an AWS Lambda. This works fine. I now want to use CloudFront to proxy access to this Lambda and cache requests for static files.
I have set up a CloudFront ...
0
votes
1
answer
62
views
Cloudfront distribution with react app and wordpress app hosted on same domain - how to get browsers with react app cached to render wordpress app?
I have a domain that hosts a react website in an s3 bucket via cloudfront. There is also a wordpress site hosted on a subdomain of that domain, and in the cloudfront distribution for the web app, I ...
4
votes
1
answer
2k
views
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 ...
1
vote
1
answer
759
views
AWS Cloudfront CORS trouble with font files
I have a Javascript application that is delivered to the browser from a CloudFront endpoint. All static files of the application are hosted in an S3 bucket. That involves a whole bunch of javascript ...
0
votes
1
answer
377
views
Cloudfront 502 error with ALB origin in different region
I have a CloudFront which has one of its origins as an application load balancer, this load balancer is available in a different region from the CloudFront which is only available in N.Virginia and is ...
1
vote
0
answers
102
views
React Js + AWS Cloudfront + SaaS + SSL Certificates
This is the scenario I have in mind
SaaS application
Frontend built using React Js
Hosted using S3 bucket + Cloudfront
Customer domains pointing to this application using CNAME
Questions -
Can ...
0
votes
0
answers
131
views
Transfer Compression with Cloudfront and nginx SSI
Is there any way to enable GZIP / Brotli compression on Cloudfront if the origin is a nginx server with SSI (Server Side Includes) enabled?
The issue seems that nginx SSI drops the Content-Length ...
1
vote
0
answers
457
views
Configure AWS Cloudfront to send custom query params to origin
is it possible to configure my AWS Cloudfront distribution to append to the request a custom query param (e.g a private key) before sending it to origin?
For example, the front end is calling *....
0
votes
1
answer
116
views
Will using reverse proxy negate the effect of CDN?
Goal: Serve a specific sub directory of a domain from a different CDN (cloudfront in our case). We are thinking of utilizing Nginx as a reverse proxy to achieve this.
For example, the following ...
2
votes
2
answers
3k
views
How to whitelist Authorization header in CloudFront custom Origin Request Policy?
I have created the following CloudFront Origin Request Policy:
I need Authorization header (without Authorization header the AntiForgeryToken header is not forwarded) but I do not understand why ...
0
votes
0
answers
835
views
Understanding AWS CloudFront Cache Policy for dynamic web pages
I am working on an e-commerce website, where users can buy/sell products (the website is dynamic)
I have created the following CloudFront distribution with the following Behaviors:
As you can see I ...
0
votes
0
answers
187
views
Do CNAME mapping of my subdomain to Sendgrid for link branding using Amazon Cloudfront CDN
I want to have link branding with SSL on my domain example.com, so I created sub-domain abc.example.com, I want this abc.example.com to CNAME to sendgrid.net.
I have done CNAME mapping but it seems ...