By using AWS re:Post, you agree to the AWS re:Post Terms of Use

Lambda Trigger Disappears

0

I am creating a lambda function tiggerred by cloudfront. I am folling this tutorial (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-edge-how-it-works-tutorial.html). My function tests without error, but when I attemtp to verify it, it appears not to be called. When I leave the lambda page and then return to lambda and click on my function, the deploy dialog re-appears as if I had not deployed the function (even though I have previously deployed it). If I log out of aws and log back in, there is no trigger listed for my function. I have re-created the trigger several times. I've also deleted the function's replicates and created a new function with a new name. The trigger still disappears.

I have read other posts that suggest incorrect permissions on the function can cause this problem. The tutorial instructs me to choose the Basic Lambda@Edge policy template. I assume this template adds all the permission I need.

How can I add a trigger that does not disappear?

Thanks

1 Answer
0

I'm not sure if this is your problem, but the CloudFront trigger is created in a function's Version (the Lambda console publishes a new version for you if you're not looking at one). So if you're leaving the page and coming back, make sure to check out the Versions tab and go to the right version, and the trigger might be there.

AWS
answered 3 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions