Category "amazon-cloudfront"

AWS Amplify 503 error when using Next.js getStaticProps revalidate

I have tried to use Nextjs getStaticProps function on a page and deployed it on AWS Amplify. However when I gave the option 'revalidate' AWS cloudfront occurred

Can Cloudfront be configured to scrub all IP addresses from the incoming request before passing to the origin?

For compliance reasons, we are not able to collect or process IP addresses in our application. With an initial look, it seems that the new(ish) Cloudfront Funct

CloudFront gives 403 when origin request policy (Include all headers & querystring) is added?

I am trying to set up a CF distribution with custom origin name that points to a custom domain setup in Route53 with latency based routing (to multiple regions)

Getting 403 Access Denied Errors When Hosting a SSG nextjs App in AWS S3 and CloudFront

I got a nextjs app with a couple static pages in a bucket being hosted on cloudfront and I ran into an interesting error. The pages are in s3 but if I refresh o

Manually invalidating CloudFront cache for more than 3000 files

What happens if I want to manually invite more than 3000 files to my distribution? documentation (doc) Concurrent invalidation request maximum If you’r

CloudFront works initially then AccessDenied error

I have a CloudFront distribution setup that points to an S3 bucket whose purpose is to host a website. Whenever I go to a nested page: /path1/path2, the page re

How can I invalidate AWS CloudFront Distribution cache using Terraform?

I am looking for a way to invalidate the CloudFront distribution cache using Terraform. I could not find any information in the docs. Is this possible and if so

How to handle 403 and 404 errors with AWS Cloudfront containing multiple origins

I have the current configuration in AWS: S3 Bucket set to static website for my frontend ELB which has an EC2 instance for my backend Cloudfront distribution

How to speed up image downloads from S3

My team works on an iOS app that uses S3 and DynamoDB to manage user profile pictures. We have default profile pictures when a user creates an account. When the

AWS Lambda@Edge 502 LambdaValidationError in CloudFront for redirect

I have a lambda function which performs 301 redirect if it has uri that is generated using regex. const redirects = { xyz: '/contact', abc: '/about', };

Restrict access to s3bucket with cloudfront but allow access to media convert

I was able to restrict access to private content on my bucket using Cloudfront but now I'm unable to read from the bucket for Elemental Media Convert. Is there

Problem hosting a single-page application with Amazon S3 and CloudFront: how to differentiate 403 from S3 vs 403 from the backend service?

I have a single-page app that is developed in one of the modern JS frameworks. This single-page app only has a single entry point (index.html). It handles routi

React-Router: Force reload in browser

We have a monolithic react SPA deployed with AWS Cloudfront. We are trying out microsite architecture where each route/path in the react app will be built and d

How can I access S3 via cloudfront when public access is set false?

I have S3 and cluodfront It makes one bucket and one cloudfront Then I can access to the file in S3 via cloudfront domain. However I set publicReadAccess: false

Getting 403 Access Denied Errors When Hosting a React Router App in AWS S3 and CloudFront

When I deployed a React Router app to AWS S3 and CloudFront and when I try to access React routes directly it gives the following error with 403 error code. I c

Getting 403 Access Denied Errors When Hosting a React Router App in AWS S3 and CloudFront

When I deployed a React Router app to AWS S3 and CloudFront and when I try to access React routes directly it gives the following error with 403 error code. I c

Invalidate Cloudfront cache with AWS CDK Pipelines

As part of my CodePipeline in CDK I would like, as the last step, to invalidate the Cloudfront cache. This is my current Deploy action step: { stageName: 'Dep

Next.js: How to make links work with exported sites when hosted on AWS Cloudfront?

I'm trying to get a prototype Next.js project up by doing a Static html export (i.e. next export) and then copying the generated output to AWS S3 and serving it

AWS s3 / React: Password protecting site

I have a react application deployed successfully to a S3 bucket. I need to find a way to password protect access to the s3 url, for example if you open the url

aws sam bucket deploy failed due to Encountered unsupported boolean value true

I tried to deploy a S3:Bucket with sam. But when i run sam deploy, it failes with the error message "Encountered unsupported boolean value true" Any idea why ?