Skip to main content
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
2 votes
1 answer
174 views

I'm working with AWS CDK and have a Lambda@Edge function that needs to be updated after initial deployment. I understand that Lambda@Edge functions have replication limitations and can't be updated in ...
Toseef_Ahmed's user avatar
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
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
1 answer
141 views

I have a React application that directly connects to DynamoDB using the AWS SDK V3. Currently, the AWS credentials are stored in environment variables (.env), but I've discovered they're exposed to ...
sappyboar'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 votes
1 answer
145 views

asset_new_lambda = lambda_.Function( self, id=prefix + "asset_new", runtime=lambda_.Runtime.PYTHON_3_9, handler="asset.lambda_handler", code=lambda_.Code....
Fasiuddin Mohammed's user avatar
0 votes
0 answers
140 views

We use a CF distribution and ALB that connects to EC2 instances to provide API endpoints to the internet. On those EC2s we have an API system with many endpoints. They all start with api.company.com ...
Derooie's user avatar
  • 121
0 votes
1 answer
127 views

I'm trying to create a very simple frontend with AWS S3, AWS Cloudfront and an AWS Lambda at edge for protection. The frontend is very simple and contains no sensitive information (I just don't want ...
Yorian's user avatar
  • 2,074
0 votes
2 answers
125 views

My goal is for a lambda@edge function running on a Cloudfront viewer request event to record to DynamoDB every page request, this will be used later on for tracking activity and producing reports for ...
Omiron's user avatar
  • 397
1 vote
1 answer
330 views

I'm currently using AWS CloudFront to distribute requests to an Application Load Balancer (ALB), which then forwards them to EC2 instances. I need to configure caching based on the Host header value. ...
Ajit Kumar's user avatar
2 votes
0 answers
128 views

I am using AWS lamda function as Lamda Edge function for my CloudFront setup. This Lamda function needs to call another service to send some metrics data. This operation is non blocking and needs to ...
Sandy's user avatar
  • 2,675
0 votes
0 answers
49 views

How to make CloudFront to always deliver an old version of the page, not asking the origin again, unless this query was never received before? (well, with some timeout, like 3600sec after which a ...
porton's user avatar
  • 5,909
1 vote
0 answers
216 views

I'm trying to recreate the AWS Image Optimization Example. In the example, the end result is to have a CloudFront Distro sitting on top of your S3 bucket that can do very basic image manipulations ...
Jacob Dallas's user avatar
0 votes
2 answers
737 views

I have an S3 bucket where each folder in the root contains a website with the folder name being the website url. I have a Cloudfront distribution with this bucket as an origin and a Lambda Edge ...
Kameron Dawson's user avatar

15 30 50 per page
1
2 3 4 5
19