Questions tagged [amazon-cloudfront]

Amazon CloudFront is a web service for content delivery. It integrates with other Amazon Web Services to give developers and businesses an easy way to distribute content to end users with low latency, high data transfer speeds, and no commitments.

1
vote
1answer
24 views

AWS cloundfront video speed loading

I have s3 bucket and cloundfront connected to it. I use afterglow player to load html5 videos from cloundfront on my website. The file has 60mb in mp4 format. It lags few seconds after few seconds. ...
2
votes
1answer
25 views

Does cost varies for each edge location using cloud front or s3 bucket?

Can the cost be varied for using CloudFront and s3 bucket at each location?
0
votes
0answers
14 views

Custom domain path in AWS cloudfront for AWS s3 web hosting?

I create a s3 bucket and enable a websithosting and create a cloudfront for it. The site url like: https://xxxx.cloudfront.net/main.html Is there a way to config cloudfront to redirect https://xxxx....
0
votes
0answers
18 views

AWS S3 Redirection Rules limit

I have a static website (React) hosted in AWS S3 and I want to add a bunch of redirects to it. By 'a bunch', I mean hundreds. Now I know URLs shouldn't change but they have so I need to deal with the ...
0
votes
1answer
41 views

Can you modify the URI on an AWS CloudFront event with Lambda@Edge in a language other than Javascript?

I'm trying to do some AB testing and inserting a Lambda in our AWS CloudFront setup seems a good way to do it. My company has problem with NodeJs. They were burned by some old devs using it and have ...
0
votes
2answers
25 views

Is it possible to use AWS CloudFront for PHP files?

I'm trying to load PHP files such as index.php using AWS CloudFront. The documentation states - Create a web distribution if you want to: Speed up distribution of static and dynamic content,...
0
votes
0answers
19 views

Using CloudFront with a single EC2 instance without a load balancer

I recently migrated my WordPress to an EC2 instance. I attached an Elastic IP address to it and created an A record in my Route 53. But all my requests were HTTP so I wanted to use CloudFront to ...
0
votes
0answers
10 views

Zone Apex Wordpress redirection with CloudFront and GoDaddy

I have a website hosted on GoDaddy. It has two DNS Records in GoDaddy as follows: Type Name Value A @ XXX.XXX.XXX.XXX CNAME www @ So currently it resolves both www.example....
0
votes
1answer
11 views

Cloudfront setup for main domain without using route53

We are planning to use cloudfront distribution for our main domain and the setup will be as follows. Cloudfront Origin - route.domain.com -> Remote Server IP address(xx.xx.xx.xx) www.domain.com, ...
0
votes
1answer
19 views

Aws S3 redirection rules issue for cloudfront https requests

We have an aws s3 bucket that hosts our dynamic images, which will be fetched by web and mobile apps through https and with different sizes (url/width x height/image_name) i.e. http://test.s3.com/...
0
votes
0answers
11 views

CORS issues with localhost front end to AWS EC2 backend

I am trying to create a front end development environment. My AWS skills are clearly not up to scratch but I can't find the answer. I have my front end running on localhost:8080. The backend that ...
1
vote
0answers
35 views

Unable to invalidate data in AWS CloudFront

I am invalidating the data in AWS CloudFront but the changes are not getting reflected on the website. can anyone tell me what problem might be there? Like I want to invalidate /dir/abc.html With ...
0
votes
0answers
4 views

How to handle browser cache downloaded from cloudfront

I am using AWS Cloudfront to distribute content. The origin is a s3 bucket. I can manage each file expire date on cloudfront by setting a matedata Cache-Control on the file in s3. For example, if I ...
0
votes
0answers
8 views

Turning on AWS WAF geolocation restriction

I have a nodejs API running on an EC2 provisioned by Elastic Beanstalk, in Sydney region. I setup a Cloudfront distribution to this Elastic Beanstalk. I would like to protect my API by using AWS WAF ...
1
vote
1answer
20 views

Cloudfront URL never expires

Scenerio: I am trying to generate cloudfront signed urls to objects in s3. STEPS: 1. created an object in s3 bucket and made it public. 2. created a cloudfront distribution pointing to that s3 ...
0
votes
1answer
24 views

Amazon Cloudfront appends index.html on redirection from www to naked domain

I have set up two S3 Buckets for domain.com and www.domain.com and distributions for both on Cloudfront. Bucket with www just redirects requests to non-www bucket static Endpoint. So basically it ...
1
vote
1answer
20 views

Is s3 bucket region really matter if CloudFront is enabled?

I plan to create a s3 bucket and link it to a CloudFront distribution. CloudFront will cache the content across all regions. Is the s3 bucket region really matter in this case? If I choose Sydney as ...
0
votes
1answer
21 views

AWS Cloudfront for internal elastic load balancer origin

I am hosting one web application on the private subnet instances as the application is for the organisation's internal users across different geo location. This application needs AWS CloudFront ...
0
votes
0answers
24 views

S3 PutObject to CloudFront using presigned URL built for S3 causes error

In my server, I build a presigned S3 URL like this: // Initialize a session in us-east-1 that the SDK will use to load // credentials from the shared credentials file ~/.aws/credentials. sess, err := ...
0
votes
1answer
24 views

How to disable an S3 bucket redirect rule?

I have an S3 bucket that's hosting a Vue application which uses Vue Router with history mode enabled. Originally, I had the following redirect rule in place to work around S3 not being able to resolve ...
0
votes
1answer
20 views

cloundfront compress doesn't seem to work

I have configured cloudfront to Compress Objects Automatically. The origin server is s3 bucket. I uploaded a file to s3 through cloudfront then send a GET request to the file. But the return content-...
1
vote
1answer
36 views

How to disable AWS Lambda Edge Logs

I'm using Cloud front + Lambda Edge. Each Lambda invocation creates a cloud watch log entry in the closest AWS region. This results in lots of Cloud watch log streams scattered around the globe in all ...
0
votes
2answers
19 views

Uploads to S3 through CloudFront via Signed URLs?

I have CloudFront using an S3 origin. I'd like to be able to generate signed URLs for uploading values into S3, if possible through the CloudFront distribution. I've been poring over the docs but I ...
1
vote
1answer
22 views

Is AWS CloudFront distribution available in all edge locations?

The S3 Bucket is located in Sydney region. This is the Origin of a CloudFront distribution I created. Will the static content be cached in all 50+ AWS Edge locations across the world?
0
votes
1answer
26 views

Dynamically add origin/cache behavior to existing CloudFront distro

I believe I have hit a limitation in either the AWS api or the aws_cloudfront_distribution module (version v0.11). What I am trying to accomplish is dynamically adding origins and cache behavior to an ...
0
votes
1answer
22 views

Cloudfront Lambda@edge set cookie on Viewer Request

Update: Collected my thoughts better I'm generating a unique identifier (UUID) for each user in the Viewer Request Lambda, and then selecting a cached page to return based upon that UUID. This works. ...
0
votes
0answers
15 views

Ensure React Native sends requests using HTTP/2 [duplicate]

How does one ensure React Native sends requests using HTTP/2? We'd like to take advantage of multiplexing features available in HTTP/2, but we're using Charles to proxy and are noticing HTTP/1.1 is ...
0
votes
1answer
16 views

Is AWS Route 53 with GeoLocation Routing sufficient for basic CDN behavior

The majority of my website traffic is from North America and the UK. Is it possible to "simply" use AWS Route 53 with GeoLocation routing instead of using a CDN? What I envision is deploying my app on ...
4
votes
0answers
71 views

React Native Image requests over a single HTTP/2 connection

We have many React Native <Image> components rendering per screen and are witnessing performance issues due to many simultaneous http requests. Opening and closing a connection is expensive, and ...
0
votes
1answer
26 views

amazon cloudfront returns 404 error for all the error response from origin

Aws CLoudfront not returning the error code returned by origin server, instead it retuning the different error code. Here my origin server is AWS elb and i have configured all the paths(*) to elb ...
1
vote
1answer
30 views

“The specified key does not exist” for VueJS app deployed on deployed on S3 with CloudFront

I have deployed a VueJS app with S3 and CloudFront using Route53. It seemed like everything was working fine. I'm able to visit the site at https://my-domain.com, and I can navigate to different ...
0
votes
0answers
11 views

Cache busting is not working in Production

I am trying to solve a caching issue that really has me scratching my head. We have a Laravel app built in Docker that is deployed to Staging and Production. Assets are built with Laravel Mix which ...
2
votes
1answer
137 views

AWS Cloudfront redirects TOO_MANY times

I folowed Redirecting Internet Traffic to Another Domain and Redirecting HTTP Requests to HTTPS. This is my status. s3 : 3 buckets for web hosting 1) example.com(index.html in it, has policy), 2)...
0
votes
0answers
138 views

Cloudfront -> S3 -> API Gateway

I've created a REST API that API Gateway will route to. Using Postman I can do a POST request to my API Gateway and everything works fine. I have a static Angular site hosted on S3 that has ...
-1
votes
0answers
40 views

EC2 elastic ip routes to CloudFront

I have EC2 instance with elastic IP assigned to it. In Route 53 I have A record aliases for example.com and www.example.com which routes to CloudFront and it points to s3 buckets: example.com and www....
0
votes
2answers
12 views

How to resolve this error - Value of property {/DistributionConfig/Aliases} does not match type {Array}

I am getting this error while creating a distribution error msg this is my code this is my code
0
votes
0answers
29 views

nginx route to cloudfront (to S3)

I am trying to server static site through Cloudfront (and S3). I have S3 bucket my-bucket enabled with Static website hosting. NGINX route the traffic based on path. location /, /beta/, /static/app/ ...
0
votes
1answer
30 views

Cross origin on fabric.Image.fromURL breaks CORS even with crossOrigin set

Using fabric.js I'm attempting to load a background image from an amazon cloudfront/s3 url. fabric.Image.fromURL(imgURL, function(img) { canvas.setBackgroundImage(img, canvas.renderAll.bind(...
0
votes
0answers
33 views

Cloudfront SSL issue on wordpress. Too many redirects

Let me explain our architecture first. www.example.com CNAME points to cloudfront distribution (d3xxxxx.cloudfront.net) Origin for the cloudfront: route.example.com. We had select **Whitelist ...
0
votes
1answer
17 views

How AWS Cloudfront forward my request Initiated by S3 bucket?

This may be a simple question, but I can't find any tutorials for it My website all store in S3 bucket, but the front-end and back-end are stores in different buckets In my front-end website, JS ...
0
votes
0answers
18 views

S3 not serving index.html in folder, except root

I have a static website hosted on S3. It is backed by CloudFront and protected using OAI. When I open a browser and type https://example.com/2019/02/ then I get a message saying The specified key ...
-1
votes
1answer
23 views

Cloudfront url rewrite using lambda@edge

I want to have friendly paths for my images. For example: "https://xxxxxx.cloudfront.net/images/friendly-file-name-132456.jpg" But, actually the pysical path in S3 is: "https://s3.amazonaws.com/...
0
votes
1answer
25 views

How to configure Query Params in AWS CloudFront

I have an AWS cloudfront ahead of an S3 bucket that contains my frontend app (https://myapp.com). When I go to https://myapp.com/experts?profession=carpenter through the navigation elements of my site ...
0
votes
0answers
5 views

Exclude a cached image in Amazon Cloudfront CDN

I'm using WP YouTube Lyte plugin in Wordpress to cache YouTube thumbnail. However, due to the CDN Cloundfront, the cached thumbnail didn't work. All I need to do is to exclude the thumnails from ...
0
votes
0answers
31 views

How to stop CloudFront showing old/cached content after modifying that content?

I work for a large job search website which uses Amazon / AWS CloudFront. I am an advert designer and make custom adverts for some clients. Let's say I upload a header image called test.jpg and send ...
0
votes
0answers
29 views

Steps to updating to a new build from create-react-app?

I am building a ReactJS app using create-react-app build, and deploying to Amazon S3 and CloudFront. Deploying is easy enough; when I create a new version, I can sync the build directory to S3, hit ...
0
votes
0answers
13 views

Difficulty Testing Lambda@Edge Changes

I am trying to test changes I'm making to a Lambda@Edge on Cloudfront. Each time I make an update I create a new version, publish to edge, and clear the cache but I haven't been able to see an update ...
0
votes
0answers
19 views

AWS "Server error response\n[status code] 504\n[reason phrase] GATEWAY_TIMEOUT\n[url]

Can someone explain to me the meaning of this log error below? Phalconry\Mvc\Exceptions\ServerException Extra "remoteip": "xx.xx.xxx.x, xx.xx.xxx.xxx", "url": "GET:\/sanctionals", "...
0
votes
0answers
12 views

Cloudfront with Elastic Load Balancer

I have web services behind load balancer with url example.ap-southeast-1.elb.amazonaws.com. I want to deploy that url with cloudfront including WAF. I create web distribution and placed elastic load ...
0
votes
0answers
26 views

Setting Cookies for CloudFront

I have a CloudFront distribution running on a CNAME cdn.xxx.domain.com The app is running on xxx.domain.com The main app is creating three cookies for the domain cdn.xxx.domain.com ...

http://mssss.yulina-kosm.ru