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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
24 views

Where to store a lot of amount of images for an android game? [closed]

I have a android game that use almost more than 4 thousand images, what is the best approach to store them ? Right now Iam using S3 bucket with cloudfront, but I'm afraid from the bill, I think it ...
Talal's user avatar
  • 59
0 votes
0 answers
11 views

Restrict CloudFront signed URL usage to a specific HTTP method

I have an S3 bucket that can only be accessed via a CloudFront distribution. Some users should be able to upload certain files to the S3 bucket, and other users should be able to download certain ...
Evan Kleiner's user avatar
0 votes
1 answer
16 views

How to add cache-control header to existing responseHeaderPolicy in aws CDK Cloudfront?

I have an AWS CDK Cloudfrount distribution with the default responseHeaderPolicy. I need to add a cache-control directive, but it seems that I have to create from scratch the whole ...
cesarpachon's user avatar
  • 1,189
0 votes
0 answers
8 views

Why SSL certificate(issued through AWS Certificate Manager) fails to apply on Apache2 server running on EC2 Linux instance?

I have generated a public SSL certificate through AWS Certificate Manager. I want to use this certificate for my web applications running on EC2 instance under Apache Server for HTTPS Access. I have ...
S.Vishwakarma's user avatar
0 votes
0 answers
40 views

Encountering 403 Error When Directly Accessing NextJS Pages on S3

Issue Description I'm encountering a 403 error when accessing pages directly in my NextJS application hosted on S3. For example, 'www.website.com/about'. The website is deployed using AWS CDK with AWS ...
3n6in33r's user avatar
0 votes
0 answers
23 views

AWS CloudFront blocks Set-Cookie header

I am using CDK to construct a CloudFront distribution which has a Lambda Function behind an HTTP API Gateway as default origin. I am hosting a web application from this lambda which needs to set and ...
Mercury's user avatar
  • 632
0 votes
0 answers
27 views

Restricting CloudFront CORS to custom domain

I am trying to restrict the access to my CloudFront distribution to my custom domain as in, it will only serve to www.example.com, if a request comes from www.leech-domain.com it should return a 403 ...
Juan's user avatar
  • 1
0 votes
0 answers
25 views

Picture and source image to show images AWS S3

I have a problem in the html to make the images from aws s3 work using CloudFront on the website, I want to use the picture source to change the image responsively according to the screen size. I ...
Leandro's user avatar
-1 votes
0 answers
16 views

how can i get cloufront signed url from lms canvas

Our project uses LMS Canvas, an s3 bucket for files and all attachments. Current LMS returns S3-signed URLs to access those s3 objects, but we want to use CloudFront-signed URLs to access those ...
Avinash Kumar Singh's user avatar
0 votes
0 answers
32 views

How to get domain verification done for certificate by AWS ACM when subdomain is a CNAME, and verification record is a CNAME? [closed]

I have a subdomain name which I wish to map to a Cloudfront distribution, e.g. foo.example.com. IN CNAME XXXXXXXXXXX.cloudfront.net. , and I would also like it to be available to users over HTTPS, so ...
abbe's user avatar
  • 123
-3 votes
1 answer
32 views

How CDN pricing works [closed]

I'm having a problem understanding how CDN pricing works. I'll give an example using Amazon S3 and Amazon CloudFront, which provides the CDN service. Example consuming directly from S3: Suppose I have ...
Gustavo's user avatar
-3 votes
0 answers
17 views

Cloud front with single Load balancer and multiple instance [closed]

how to configure cloud front with single Load balancer and multiple instance ? i need to configure multiple instance to a single Load Balancer and using the single load balancer to CloudFront by a ...
playwithcode's user avatar
0 votes
0 answers
13 views

accessing http endpoint for a get request in a cloudfront app [closed]

i used aws s3 and cloudfront to deploy my react.js app. The app link is in https and its secured. i want to get data from a http endpoint which is not secured. when i try a simple axios.get(http://35....
EaswarD Sharma's user avatar
0 votes
0 answers
14 views

Incorrect "Access-Control-Allow-Origin" header while using AWS CloudFront & ApiGateway

I have an application which has the following architecture, CloudFront -> API gateway (proxy-integration) -> http (service on eks cluster), As, the api gateway is using proxy-integration, the ...
ananda's user avatar
  • 153
0 votes
1 answer
20 views

Using cdn (aws cloudfront) inside Google kubernetes engine

I have an application running on gke. It has pods of backend and frontend servers, at least initially 1 replica each. For clientside ui, it has a ui-deployment and ui-cluster-service. I have this app ...
EaswarD Sharma's user avatar
1 vote
1 answer
16 views

How to resolve same FDQN to two different AWS services

Is it possible to have "www.example.com" resolve to an API Gateway and "www.example.com/assests" resolve to CloudFront?
user2977624's user avatar
0 votes
0 answers
18 views

CloudFront - Creating a signed URL using a custom policy and custom condition

I want to create a sign url to s3 files and I want to let access only to requests that contain an Authorization token, according to the AWS developer guide: https://docs.aws.amazon.com/...
gil cohen's user avatar
  • 333
0 votes
0 answers
31 views

Lambda@Edge with Cognito Authentication Fails for Subpaths in CloudFront-S3 Setup

I've set up a static website hosted on S3 and distributed via CloudFront. I'm using Cognito for authentication with a Lambda@Edge function to handle the redirection and token verification. The ...
Ashish Purohit's user avatar
0 votes
1 answer
36 views

Deploy a React-based single-page application to Amazon S3 and CloudFront - Access Denied

I tried using Amazon's instructions step by step in this article: https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/deploy-a-react-based-single-page-application-to-amazon-s3-and-...
Gil Tchelet's user avatar
0 votes
0 answers
13 views

S3 and CloudFront hosting a static website, with each page reload resulting in a 403 error

I am currently hosting a static HTML and CSS website by utilizing Next.js export and deploying it to both S3 and CloudFront. The file structure comprises pages such as blog/index.html, page2/index....
A.J's user avatar
  • 57
0 votes
0 answers
10 views

Heroku Add-on Edge CDN overwriting Content-Security-Policy header

I am currently serving my Shopify App through Heroku. Since Shopify apps are loaded inside an iframe in the merchants admin, one of the requirements is a correctly set Content-Security-Policy header. ...
felixmp's user avatar
  • 314
0 votes
1 answer
23 views

laravel vapor is injecting cloudfront cdn url between app domain and vue route url

I am using Laravel Vapor to deploy my laravel/vue application and using vite to compile assets. The deployment is working perfectly and assets are being loaded from CloudFront CDN but vapor is also ...
Prakash Poudel's user avatar
0 votes
1 answer
49 views

Is it necessary to create a AWS CloudFront distribution for AWS MediaPackage when the clients are from one place?

I want to stream a live video to 200 listeners (web clients). I use AWS MediaLive and AWS Media Package. All clients are from the same city. From Prague. Is it necessary for me to create a AWS ...
Tomáš's user avatar
  • 2,088
0 votes
0 answers
28 views

cloudfront distribution to access site hosted on framer app

In my old implementation, my static file was deployed to the S3 bucket, and my CloudFront distribution pointed to my S3 bucket and it was all working fine. Now, I have developed my static website on ...
brig's user avatar
  • 3,743
-1 votes
1 answer
30 views

AWS CloudFront Custom domain name with the "WWW.SHEPDESIGN.COM" not working. Showing a HTTP 502 status code

So I have a CloudFront distribution setup with AWS Lightsail and I just noticed that my "www.shepdesign.com" is routing to an HTTP 502 status code. The "shepdesign.com" is ...
Shepdesign's user avatar
0 votes
0 answers
23 views

Lambda Edge Function trigger is getting removed automatically

I have a static website hosted on s3 and I am serving it through cloudfront. For routing I have used this lambda edge function export const handler = async (event) => { const request = event....
Saquib Mansuri's user avatar
0 votes
0 answers
33 views

Lambda Edge returns html page instead of json

I am using a AWS cloudfront distribution and configuring a lambda edge function to proxy requests to my non edge based lambda. I am seeing that the request is being sent correctly when console logging ...
exception_thrown's user avatar
0 votes
0 answers
134 views

How can I use my NextJS application with CloudFlare or CloudFront CDN?

I have an e-commerce application that I developed with NextJS 13 App Directory and I host it on my own server. Nextjs default cache system works fine, but the cache is reset every time I deploy. I do ...
Denis Berke's user avatar
0 votes
0 answers
22 views

Apple app site association issue on AWS CloudFront with S3

I checked the following headers to ~/.well-known/apple-app-site-association Content-Type is applicaion/json. But There is the following error Your file's 'content-type' header was not found or was ...
graycrow's user avatar
0 votes
0 answers
23 views

AWS Cloudfront Distribution - Multiple Behaviors with different Response headers

I need to attach 2 different Security Response Headers to a single Cloudfront Distribution via multiple behaviours. The requirement is - 1st Response header will contain static 'connect-src' URL's ...
messi.torres28's user avatar
1 vote
0 answers
20 views

403 issue on reactjs app hosted on private s3 bucket behind cloudfront

I have the following setup: ReactJS app hosted on s3 static web hosting, with error redirection to /index.html the bucket has public access disabled the cloudfront connects to the bucket via the ...
jamesdeath123's user avatar
0 votes
1 answer
70 views

Terraform aws cloudfront distribution with multiple origins

So, I am trying to create mutiple origins based on a list to my terraform module What I am trying to do is the following: resource "aws_cloudfront_distribution" "photos" { ...
TalesMGodois's user avatar
0 votes
0 answers
79 views

appConfig:28 Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME

I'm running into some issues with my app after it was deployed. My app is a parent Astro shell serving up multiple React JS child apps. Vite is used for build. The child apps are all deployed ...
PhuongHoang6897's user avatar
-1 votes
0 answers
46 views

Authentication using cognito and lambda@edge for cloud front distributed s3 website

i have a static website hosted on s3 and distributed via cloudfront. the static website can be accessed by hitting https://docs.my-domain.com, its an A record with simple routing and target being ...
Ashish Purohit's user avatar
0 votes
0 answers
50 views

How to Serve Specific Files in a Private S3 Bucket via CloudFront and Route 53 with Query Strings in React App?

I have developed a one-page React application hosted in an S3 bucket, which is configured to be private, and it's served through a CloudFront distribution with Route 53 for DNS. The S3 bucket is ...
JuliosMorelos's user avatar
-1 votes
0 answers
28 views

adding HTTPS to CloudFront with S3 [duplicate]

I currently have a working S3 (with an index.html page) and CloudFront distro. If I access the CloudFront "Distribution domain name", the page displays my index.html and converts to https. ...
dl_atl's user avatar
  • 67
0 votes
0 answers
25 views

How to prevent hotlinking my m3u8 live stream which created by medialive workflow?

I have built a website and live stream some private videos only to registered viewers. The live stream is generated by AWS Medialive workflow. The workflow uses Cloudfront to distribute the stream. ...
Charles's user avatar
  • 671
0 votes
1 answer
62 views

Rails and Paperclip: Unable to upload images using Cloudfront

I have an old Rails application that uses Paperclip to interact with AWS. I am migrating over to Cloudfront due to TLS compatibility issues, but am running into issues uploading the photos. I can ...
Sara Fuerst's user avatar
  • 5,848
0 votes
0 answers
10 views

AWS cloudfornt: unable to manage path based diversions

I am trying to run two frontend reactjs websites under different paths using cloudfront and s3 bucket I have a bucket and have two folders app1 and app2 and within that the build folder are there with ...
Santhosh's user avatar
  • 10.4k
0 votes
0 answers
19 views

Using CloudFront function to restrict S3 site access

I have static sites that sit on S3 and are served via CloudFront. I need to restrict access to a list of IP addresses. The main option I'd seen on the internet was to use WAF. I have used CloudFront ...
Talal Najam's user avatar
0 votes
1 answer
23 views

CloudFrontUrlSigner to sign alternative domain name

So, I've setup Cloudfront and AWS and I've created a separate Behaviour with Restricted Vier Access and and in my app I'm using CloudFrontUrlSigner to sign urls like this: return CloudFrontUrlSigner....
Petar Tahchiev's user avatar
0 votes
0 answers
33 views

AWS S3 and Cloudfront: Limit access to s3-object to a specific user

I am trying to limit the access of S3-objects to a specific user. My structure is defined as follows: Objects are prepared in the backend and URLs to this object is created via Cloudfront-Signers (...
misantronic's user avatar
  • 1,172
0 votes
0 answers
27 views

aws cloudfront invalidation

I tried to find a way to work without caching my s3 bucket in my cloudfront url. and i found using the invalidation is very easy to use so i invalid the entire object as follow: /* The problem is i ...
Bennyh961's user avatar
-1 votes
1 answer
43 views

Using Route53 to serve https request for my s3 bucket via cludfront distribituin

I spent almost 3 days with trial and error , documention and more but not sloving my issue. i pretty sure i do same mistake over and over again. please try read my steps and figure out why i cant ...
Bennyh961's user avatar
0 votes
1 answer
39 views

How to start Lambda edge viewer request locally?

Is it possible to start aws cloudfront lambda edge functions locally and mock the event to see the response from one of the four function. I have made some changes in viewerRequest function of ...
Sparsh Khandelwal's user avatar
1 vote
2 answers
803 views

CloudFormation S3 Bucket Policy

I am new to CloudFormation and am trying to create an S3 bucket as below for a CloudFront distribution. However, I get a NotStabilized error after a few minutes of deploying the yaml file. I am ...
RedPen's user avatar
  • 235
0 votes
0 answers
32 views

React App on S3 and CloudFront - Navigation Bar Clicks Not Rendering Content

I have a React application hosted on Amazon S3 as a static web page, and it's connected to a CloudFront web distribution that routes traffic to an S3 endpoint. However, I'm facing an issue with the ...
Michal Sipek's user avatar
1 vote
1 answer
37 views

Avoid export error for AWS CloudFront Function and doing unit tests

How can I avoid this error: "The CloudFront function associated with the CloudFront distribution is invalid or could not run. SyntaxError: Illegal export statement", and still be able to ...
Efren's user avatar
  • 4,303
1 vote
1 answer
24 views

Dealing with Cache Misses and 'no-cache' Directives in amzn CloufFront

I'm currently working on a Next.js application where certain pages have cache headers set to cache-control: no-cache, max-age=120, must-revalidate. Despite this configuration, I'm consistently ...
awm's user avatar
  • 1,150
1 vote
0 answers
46 views

CloudFront HTTP/3 Enabled but doesn't work

I have two AWS CloudFront distributions, one over an S3 bucket and one over an Application Load Balancer (ALB). On both of them I checked the box "Enabled HTTP/3". While using my ...
PatientOtter's user avatar
  • 2,114

1
2 3 4 5
100