1
votes

I tried to create a lambda@edge for cloudfront redirect root default object. I followed this instruction: https://aws.amazon.com/blogs/compute/implementing-default-directory-indexes-in-amazon-s3-backed-amazon-cloudfront-origins-using-lambdaedge/

But the CloudFront doesn't appear in the trigger selection. How can I add CloudFront as a trigger for my lambda function?

enter image description here

2
In which region is your lambda deployed?deosha

2 Answers

3
votes

For those who are struggling this error, I solve it by changing the region to US East V N

2
votes

The Cloudfront triggers are supported in N. Virginia region. So, for using ClodFront Triggers you have to Create you lambda in Virginia Region. And then you will be able to see CloudFront Trigger inside the Designer tab. Designer tab