Category "amazon-cloudfront"

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 ?

error updating CloudFront Distribution (E32RNPFGEUHQ6J): InvalidWebACLId: Web ACL is not accessible by the requester

I am using terraform to create a web-acl in aws and want to associate that web-acl with CloudFront distribution. So, here's how my code looks like: provider "aw

How to add environment variable to CloudFront function in CDK?

I've created an CloudFront function in CDK: func = cloudfront.Function( self, "redirect", code=cloudfront.FunctionCode.from_file( file_path=

Get 403 Error when trying to use CloudFront OAI for S3 bucket access

I have a S3 bucket which hosts my react website. I banned public access to the bucket, and configured an OAI to access the S3 bucket. I can see that I have gran

How to fix error No 'Access-Control-Allow-Origin' header is present on the requested resource when using S3 and Cloudfront of Amazon

When I config S3 and Cloudfront to secure my premium files, I have a problem with Cross-Origin from Cloudfront I have researched and found this link and follow

504 Error for Cloudfront.net distribution and Route53 Domain

I'm trying to setup a static S3 website to be reachable via my custom domain, but when I've tested my cloudfront URL I'm getting 504 Error and in the logs, I se

Cannot delete AWS Lambda@Edge replicas

This question already exists here but I think it will have more impact on SO. I created an AWS Lambda@Edge function in order to rewrite Cloudfront URLs befo

Cannot delete AWS Lambda@Edge replicas

This question already exists here but I think it will have more impact on SO. I created an AWS Lambda@Edge function in order to rewrite Cloudfront URLs befo

Delete ACM certificate after CloudFront was deleted

I had a CloudFront distribution with a custom ACM certificate associated with it. The CloudFront was deleted, but I cannot delete the certificate, it says it&rs