I've created a Lambda function that will take a user's name and email and post those to an API. I then created an Aurora MySQL DB instance that will invoke that Lambda function. To invoke it, I created a trigger as such :
Time: AFTER
Event: Insert
Definition: BEGIN
CALL mysql.lambda_async("arn:aws:lambda:eu-west-2:<id-number>:function:user-to-API", CONCAT ('{"user_first_name": "', NEW.first_name, '", "user_email": "', NEW.email, '"}'));
END
Definer: master_user@%
However, I want to do this synchronously, to trigger the lambda function only once. This is possible with an Aurora MySQL Native Function. However, I have tried without the mysql part - using lambda_sync and always receive the same error: MYSQL PROCEDURE mysql.lambda_sync does not exist OR MYSQL PROCEDURE lambda_sync does not exist. Does anyone have any experience with this?
Thank you in advance for your support.