Skip to main content
Filter by
Sorted by
Tagged with
Advice
0 votes
1 replies
29 views

Why can we set which request headers should make up the cache key in a cloudfront distribution behaviour? If the origin responds with a Vary header, shouldn't the cache just use the headers in there ...
David Klempfner's user avatar
-2 votes
0 answers
32 views

We run a Meteor application that requires sticky sessions. We recently refactored our infrastructure and have started seeing connectivity issues. Old Setup (Stable): A single EC2 instance running ...
BrTkCa's user avatar
  • 4,789
0 votes
0 answers
35 views

I have an application that is in production working with Cloudfront + Appsync with OICD Authorizer. In the Cloudfront configuration for some reason it is adding in the custom headers if API_KEY exists ...
Leonardo Campanha's user avatar
1 vote
1 answer
68 views

Our web service is running on EC2 with Apache. We have the following setup: Service A -> ELB -> Service B API In this case, Apache on Service B shows in rewrite.log that the rewrite rule was ...
佐藤良人's user avatar
-1 votes
1 answer
34 views

I have configured CloudFront and S3 using OAI and it generally serves files as expected. I am trying to reduce my S3 API costs and I think about 10% of it is linked to requests for non-existent files. ...
ComputerUser's user avatar
  • 4,892
0 votes
0 answers
132 views

I’m working on a Node.js backend that generates a signed URL for uploading files to AWS S3 via CloudFront. However, when I hit the signed URL endpoint from curl, I always get the following response: {&...
Koperumsozhan VR's user avatar
-1 votes
1 answer
47 views

I could use an assist on my opentofu tests Here is a small snippet of my Terraform module resource "aws_cloudfront_distribution" "main" { price_class = "...
jaekie's user avatar
  • 2,321
3 votes
1 answer
224 views

I'm using Amazon CloudFront's Continuous Deployment feature to implement a canary release for a static website. My setup is as follows: Origin: Both the primary and staging distributions use an S3 ...
cpw's user avatar
  • 349
0 votes
0 answers
58 views

I'm having an issue creating an AWS CloudFront Distribution that returns CORs headers from a Lambda Function URL Origin. I can send test requests via cURL to the Lambda Function URL directly and see ...
rhys_stubbs's user avatar
0 votes
0 answers
35 views

I'm trying to generate signed URLs for a CloudFront distribution using the AWS SDK v3 (@aws-sdk/cloudfront-signer) in a Node.js project. I successfully uploaded my public key to CloudFront using: aws ...
Aqib Ansari's user avatar
0 votes
0 answers
50 views

I’m building a system to serve private S3 assets via CloudFront Signed Cookies—so end users can browse entire folders without issuing individual presigned URLs. What I'm trying: I have a CloudFront ...
Vasu Gajjar's user avatar
0 votes
0 answers
67 views

In the AWS CloudFront distribution, I can configure the origin request policy to add CloudFront-Viewer-Country header to the origin request, and I can read that header in the Lambda@Edge attached to ...
Edik Mkoyan's user avatar
0 votes
0 answers
62 views

This is my first time deploying a web application using AWS and I could successfully see the static pages but not dynamic pages now. I've read that when CloudFront gets a header with authorization, it ...
Himawari.Ksm's user avatar
0 votes
0 answers
94 views

I'm experiencing a 502 error with my CloudFront distribution that was previously working fine. This is the second time this has happened to me with a Google Cloud Run origin connected to AWS ...
Spencer Romberg's user avatar
0 votes
0 answers
55 views

I have updated a PDF file in my Amazon S3 bucket. The bucket in question is being served by a CloudFront distribution. I have successfully executed an invalidation and when I access the PDF file by ...
Narayan's user avatar
  • 65
0 votes
0 answers
34 views

I'm trying to figure out how to handle caching in the most appropriate way for my APIs which are handled via Lambdas hooked up to API Gateway using aws_proxy and custom domains. I read that a hidden ...
Mr Pablo's user avatar
  • 4,186
0 votes
1 answer
99 views

Strapi Version: 5.11.3 Node Version: 22.0.0 Database: Sqlite This issue occurs when I want to save the crop image results in the strapi media library but nothing happens. I checked and there was an ...
Aslann59's user avatar
0 votes
3 answers
142 views

I have remoteEntry.js file in AWS S3 bucket. I have cloudfront setup with a custom SSL cert which loads this remoteEntry.js with below url: https://modules.uat.mysite.com/available-modules/...
jarvo69's user avatar
  • 7,908
1 vote
1 answer
82 views

I'm trying to use Lambda at Edge, and based on the status of the request, to return some HTML. Basically the following is my Lambda code (in Python): def handler(event, context): clientIp = event['...
Afghangster's user avatar
0 votes
0 answers
44 views

I'm trying to deploy my WebApp pipeline using CDK (https://docs.aws.amazon.com/cdk/v2/guide/home.html) with credentials set up in ~/.aws/credentials and ~/.aws/config. I created a certificate in AWS ...
astro_sy's user avatar
2 votes
0 answers
88 views

I'm trying to establish a WebSocket connection through AWS CloudFront to a backend service behind an Application Load Balancer. The setup works perfectly when accessing the backend directly (via ALB ...
James Delaney's user avatar
2 votes
0 answers
90 views

I'm deploying an Astro static site to S3 and serving it via CloudFront. Here's my deploy script: "deploy": "npm run build && aws s3 sync dist s3://mybucket/WEBSITE --delete"...
Shanu Reddy's user avatar
4 votes
2 answers
86 views

I have the following Cloudfront and lambda at edge setup User makes a request to CDN (path is irrelevant, result must always be the same for given day) Cloudfront makes request to origin (lambda is ...
Dragas's user avatar
  • 1,277
0 votes
0 answers
144 views

I'm really getting desperate. I have an EC2 instance in AWS running two containers. One of them is KeyCloak (and its db). This should be accessible via a Cloudfront URL. But I am encountering problems ...
TheGameZ's user avatar
0 votes
1 answer
75 views

My goal was to host multiple static websites in a single s3 bucket. My s3 bucket has folders like this and these should point to the urls like this My-bucket/feature-abc-123 => my-url/feature-abc-...
margherita pizza's user avatar
0 votes
1 answer
65 views

I have an AWS Lambda function connected to an API Gateway (Regional HTTP API) and my domain is linked to CloudFront. However, my application's canonical URL is being set to the API Gateway domain ...
Aren Sade's user avatar
  • 574
0 votes
1 answer
57 views

I have a static Gatsby website hosted on S3 + Cloudfront. The site is working fine with custom error responses with path set to /index.html for error code 403 But when I try to manually enter a ...
Waleed93's user avatar
  • 1,332
0 votes
1 answer
54 views

I have two apps in AWS. One hosted in AWS S3 and acts as an origin for an AWS CloudFront distribution. Another one hosted in AWS Amplify. I would like to, based on a specific path, to redirect ...
Felipe Peña's user avatar
  • 2,848
1 vote
1 answer
79 views

I have Cloudfront distribution and S3 bucket as origin. Distribution is deployed and active - I can reach files from S3 like example root object or files deployed myself using AWS console with url - ...
Artur Uvarov's user avatar
2 votes
2 answers
392 views

I’m using Next.js (front-end) at https://toscanini.me and serving images from https://images.toscanini.me via Amazon S3 + CloudFront. Despite having set up CORS, my browser still reports a CORS error ...
Santiago Toscanini's user avatar
-2 votes
1 answer
85 views

I am attempting to upload a public key to cloudfront with terraform using aws_cloudfront_public_key like this: //main.tf ... resource "aws_cloudfront_public_key" "public_key" { ...
sparsespeculator's user avatar
1 vote
1 answer
332 views

I am using Cloudfront function to redirect the request url as below code: return { statusCode: 307, statusDescription: 'Found', headers: { location: { value: $newUrl } }, ...
Joey Yi Zhao's user avatar
  • 43.3k
0 votes
0 answers
26 views

I'm working on a migration from an application, previously running on Kubernetes to a setup with S3 and Cloudfront. That application has 4 environments. Those environments were selected via a ...
Carabes's user avatar
  • 737
0 votes
0 answers
60 views

I have a website hosted on AWS -> EC2 with Cloudfront setup. The issue when the code makes an OnSubmit post via vue it returns, Uncaught (in promise) undefined Promise onSubmit. What behaviours ...
GAV's user avatar
  • 1,183
0 votes
0 answers
30 views

I'm making a small react web app. I would like to see how to add ads on it. I went on adsense and added the snippet to my index.html to have it look like this: <!DOCTYPE html> <html lang=&...
Santeau's user avatar
  • 1,017
0 votes
0 answers
28 views

I am trying to configure AWS S3 and CloudFront to work with Camaleon CMS and have encountered several issues. Documentation and CORS Configuration: I initially tried to follow a tutorial given in the ...
Labani Das's user avatar
0 votes
0 answers
89 views

I have an Angular app with an important frontend-only functionality, and I want to capture logs for it. The app is deployed on AWS using S3 and CloudFront, while the backend is nodejs app primarily ...
ZunX's user avatar
  • 21
0 votes
0 answers
83 views

How do I enable streaming / ui loading for a nextjs application on cloudfront? I have a simple next15 server-side page with a server component that should fetch data on every url query change, meaning ...
Dragos123's user avatar
0 votes
0 answers
68 views

need some expert advise on how can we get PCI Vulnerability scan completed by and authorized ASV on a website's public facing IP address when it sits behind Cloudfront. CloudFront has got a huge range ...
infraadmin's user avatar
0 votes
0 answers
32 views

I'm writing a PL/SQL function which converts available CloudFront URL, Private Key & Key Pair to prepare a signed URL with some expiry time. I tried various approaches like DBMS_CRYPTO.MAC() & ...
Chintan Shah's user avatar
  • 1,784
0 votes
0 answers
133 views

I have a cloudfront distribution that backs into and S3 bucket. There are custom error pages that direct 403/404 errors to "/notfound.html". The S3 bucket contains a directory per ...
bsdfirst's user avatar
0 votes
2 answers
142 views

I have a Lambda function in GoLang, I want to have CDN on it for region based quick access (I think Cloudfront can help me do that on AWS). Researched so far: I saw that Lambda@Edge is there to ...
Pranav Soni's user avatar
0 votes
0 answers
38 views

The Problem: getProfile most of times go to PreFlight (but sometimes work right). Frontend Host: AWS S3/CloudFront and Backend Host: AWS EC2 FRONTEND client.js import axios from "axios"; ...
Harvsystem's user avatar
0 votes
1 answer
301 views

I'm defining a Cloudfront with a WAF using Terraform. The relevant parts of my code are: resource "aws_cloudfront_distribution" "cloudfront" { origin { origin_id = &...
Carabes's user avatar
  • 737
0 votes
0 answers
34 views

I am attempting to get a NextJS 14 SSR app to work with cloudfront. The initial load uses searchParams which are always empty. So CloudFront caches the empty response. Here is the SAM template section ...
cyberwombat's user avatar
  • 40.5k
2 votes
0 answers
75 views

I have nodejs aplication with nestjs. There a different endpoints, some of them respond quickly, and others could run for tens of seconds. Architecture in aws: waf -> cloudfront -> alb -> ecs ...
gigifork's user avatar
2 votes
1 answer
128 views

I want to configure the Cloudfront Cache Policy as "Include all query strings except...". The exceptions should include various tracking query strings, such as the utm_* parameters. ...
ahendwh2's user avatar
  • 404
1 vote
0 answers
75 views

I'm learning Kubernetes (K8s) and have a question regarding cloud infrastructure provisioning with Kubernetes and external-dns. ROUTE 53 ---> CLOUDFRONT (SSL TERMINATION) ----> ELB --------> ...
Cofi's user avatar
  • 73
0 votes
0 answers
57 views

I want to serve page content from multiple resources. I have successfully served content from S3 by setting Lambda@Edge as following export const handler = async (event) => { const request = ...
Manh The's user avatar
1 vote
1 answer
275 views

I've been creating lambda@edge functions to do various actions on a viewer request event from cloudfront. Most examples I can find seem to use callbacks but I wanted to use the async/await pattern ...
Omiron's user avatar
  • 397

1
2 3 4 5
101