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.
amazon-cloudfront
5,058
questions
0
votes
0
answers
5
views
AWS S3 website using CloudFront has too many redirects
I have an S3 bucket configured as a website, mysite.net
Another bucket that is empty named www.mysite.net, wewbsite for this bucket is not enabled.
I have a hosted zone in Route53 for mysite.net
There ...
0
votes
0
answers
18
views
Is Cloudfront distribution backed by s3 able to return entire "folder" via prefix?
I am trying query cloudfront with key prefix. ex. of key "{uuid}/static/{uuid}.json".
When trying to query with request, it will return the correct file.
res = requests.get("https://...
0
votes
0
answers
17
views
Next js 14 app router always Hard refresh when behind cloudfront
I am working with nextJs 14 app router and it's behind CloudFront
My application works very weirdly it is always hard refresh irrespective of whether I use the Link component of the nextJs.
I have ...
0
votes
0
answers
8
views
What is the best practice for implementing AWS WAF for multiple (cloudfront + api_gateway)?
I am new with AWS Cloud and right now I'm working with AWS WAF and I have a multiple site/server (obviously with their respective github repository), I'm planning to implement a WAF for each site, but ...
0
votes
0
answers
17
views
Getting CORS error in AWS (Cloudfront distribution + S3 setup)
Earlier I was accessing this cloudfront distribution from one repo, localhost:4000, and from stage env. It was all working fine. I set up a new localhost localhost:4800 and tried accessing the same ...
0
votes
0
answers
24
views
Slow lambda run times when using SharpJS
I have an AWS Object Lambda in Node 20.x that uses SharpJS to watermark and reduce an image size upon GET requests.
Code looks like this:
export const handler = async (event) => {
const start = ...
0
votes
0
answers
21
views
My vite web app not opening on linkendIn and instagram mobile browser
I have a vite app, and i'm trying to promote it on instagram and have attached my link to it.
But the link is not opening in the instagram app inbuilt browser and same for linkendIn only in ios ...
0
votes
1
answer
23
views
Why can't I connect to my EC2 instance through AWS CloudFront?
I'm moving a WordPress site onto AWS. To do this, I've set up the following architecture:
A single EC2 instance held in a target group with a database and WordPress installed on it.
An Elastic Load ...
0
votes
0
answers
25
views
Cloudfront omits CORS header in preflight request only when Authorization header is included
We have a Cloudfront distribution in front of a HTTP API Gateway.
Cloudfront:
Caching disabled
AllViewerExceptHostHeader
Response Header policy, custom
Adds Access-Control-Allow-Origin: <list>, ...
0
votes
0
answers
29
views
Is it worth reducing Vite build chunk sizes if I am serving compressed files through CloudFront?
Just as the title says, I have a Vite application that is currently building to about 9.5mb, with two index files being the largest offenders. This of course causes the warning to be shown after build ...
0
votes
0
answers
30
views
Serve wordpress and S3 website using Cloudfront
I have my main site at WPEngine hosted and a React based webpage hosted on S3.
Domain is setup on Route 53, I have created a cloudfront with 2 origins.
Origin 1 -> domain.wpenginepowered.com
Origin ...
1
vote
0
answers
51
views
The Lambda function associated with the CloudFront distribution is invalid or doesn't have the required permissions. ERROR 503
Im trying to add cloudfront viewer request as trigger in lambda function but getting this error
503 ERROR
The request could not be satisfied.
The Lambda function associated with the CloudFront ...
1
vote
0
answers
19
views
CORS pre-flight request issue when using API custom domain names
I have been stuck on this issue and it's driving me mad - for a bit of context, I'm trying to lodge a signin request from my front-end through my AWS API Gateway to a lambda function, which generates ...
0
votes
1
answer
58
views
Cannot find asset at /home/runner/CDK_Test/frontend/frontendapp/build when running CDK deploy on GitHub Action
It could not find the build from frontendapp when I tried to run cdk deploy on GitHub Actions. I checked the path for build and it seems to be no issues. I tried running cdk deploy --all locally and ...
0
votes
1
answer
33
views
Optimizing Spring Application Performance by Moving Assets to AWS S3 and CloudFront
We have a Spring application hosted on an AWS EC2 server. To optimize the application's performance, we are considering moving all images and scripts to an S3 bucket. Our application, deployed across ...