Category "amazon-cloudfront"

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

AWS CloudFront access denied to S3 bucket

I am trying to setup CloudFront to serve static files hosted in my S3 bucket. I have setup distribution but I get AccessDenied when trying to browse to the CSS

Domain name cannot be used in Cloudfront after deletion of distribution

I have created a cloudfront distribution and have set the alternate domain name to www.example.com, with an associated certificate. I have then deleted the dist

How to access host in lambda behind both API gateway and cloudfront?

I have a lambda function being executed by an API gateway. I have cloudfront pointing traffic to the API gateway endpoint. How do I access the host/domain the

How to pre-warm CloudFront edge servers' cache?

We have a requirement where we want to pre-warm the cache of all the edge server for a specific CloudFront distribution. For this, we will need to direct a few

React App url parameter with S3 and CloudFront

My apologies if the information that I have provided is vague as I am not so experience with AWS and React. I have a React Application being deployed on S3 and

Cloud Front : The request could not be satisfied

I am coming across this problem, i have a chat server which needs to communicate to the lambda service hosted in aws , but cloud front throws the following erro

How To Authenticate an AirPlay Session

I am serving HLS video with AWS CloudFront. The content is secured with Signed Cookies. I would like users to be able to use Apple AirPlay to watch the video

Why won't my content security policy deploy to CloudFront?

I'm composing a fairly large CSP and deploying it to CloudFront with CloudFormation. The old CSP worked, but the new one doesn't. It doesn't look like it has an

Cloudfront cache with GraphQL?

At my company we're using graphql for production apps, but only for private ressources. For now our public APIs are REST APIs with a Cloudfront service for ca