AWS lambda executor setup
Last updated
Last updated
Yoda uses an external executor to resolve requests to data sources. Currently, it supports AWS Lambda (through REST interface). In future releases, yoda will support more executors and allow you to specify multiple executors to add redundancy.
In your AWS account, go to AWS Lambda Page and click Create function.
Follow the following steps:
Select Author from Scratch
Choose your Function name It will be your endpoint route.
Set Runtime to Python 3.7
For permission, if you don't have an existing role, create a new one.
Click Create function. Once everything is complete, You will see this page.
Scroll down to Function code panel and click Actions -> Upload a .zip
file. You will need to upload the runtime zip.
Go to Configuration - Environment variabeles - Edit
Environment variables section and add 2 environment variables: MAX_EXECUTABLE
to 8192 (8 MB) and MAX_DATA_SIZE
to 256.
Go to Configuration - General Configuration - Edit Basic Settings and update the runtime configurations. We recommend using 512MB RAM and 12 seconds timeout.
We will use API Gateway for receiving a request from our Yoda program. Let’s create a new trigger by clicking + Add trigger -> API Gateway and follow the setup wizard to create a new API endpoint connecting to your Lambda function.
Once completed, you will see the API endpoint that will be used as the endpoint URL to test your Lambda function.
You can now test the endpoint using curl
The expected result should be:
Go to Active Oracle session click here Setup Yoda