Invoking a Lambda function from an Amazon Aurora MySQL DB cluster (original) (raw)
You can invoke an AWS Lambda function from an Amazon Aurora MySQL-Compatible Edition DB cluster with the native functionlambda_sync
or lambda_async
. Before invoking a Lambda function from an Aurora MySQL, the Aurora DB cluster must have access to Lambda. For details about granting access to Aurora MySQL, seeGiving Aurora access to Lambda. For information about the lambda_sync
and lambda_async
stored functions, seeInvoking a Lambda function with an Aurora MySQL native function.
You can also call an AWS Lambda function by using a stored procedure. However, using a stored procedure is deprecated. We strongly recommend using an Aurora MySQL native function if you are using one of the following Aurora MySQL versions:
- Aurora MySQL version 2, for MySQL 5.7-compatible clusters.
- Aurora MySQL version 3.01 and higher, for MySQL 8.0-compatible clusters. The stored procedure isn't available in Aurora MySQL version 3.
For information about giving Aurora access to Lambda and invoking a Lambda function, see the following topics.
Topics
- Giving Aurora access to Lambda
- Invoking a Lambda function with an Aurora MySQL native function
- Invoking a Lambda function with an Aurora MySQL stored procedure (deprecated)
Saving data into text files in Amazon S3
Giving Aurora access to Lambda
Did this page help you? - Yes
Thanks for letting us know we're doing a good job!
If you've got a moment, please tell us what we did right so we can do more of it.
Did this page help you? - No
Thanks for letting us know this page needs work. We're sorry we let you down.
If you've got a moment, please tell us how we can make the documentation better.