AWS Lambda
Last updated
Was this helpful?
Last updated
Was this helpful?
It's possible to interact with AWS Lambda functions via HTTP API and using the AWS Lambda datasource in UI Bakery.
In this article, we'll explore how you can firstly connect AWS Lambda and then execute an AWS Lambda function from UI Bakery action.
Before connecting your data source to UI Bakery, you need to take the following steps:
.
.
.
To execute Lambda function from UI Bakery, you first need to enable the function URL for it.
If you're creating a new function, simply select the Enable function URL checkbox in the Advanced settings section.
If this is an existing Lambda function, navigate to the Configuration tab > Function URL and click the Create function URL button. Select AWS_IAM as the function's Auth type.
Once the function URL is created, save it to be used later when configuring a UI Bakery action.
On the Data sources page, click Connect, and select AWS Lambda in the Data sources list.
Specify all the required credentials and paste the Access key ID and Secret access key ID that you've generated prior.
If necessary, use the function URL you created in the first step in the Base URL field.
Click Test connection to check whether the data source can be connected, and then click Connect Datasource.
Once your datasource is configured, you can go to your project and open the Actions panel. There, create a new action of the HTTP Request type and select your AWS Lambda data source.
If you've added the Base URL when connecting your data source, leave the URL field in the Request settings blank. If not, add the function URL to the URL field.
Once the action is configured, you can execute it, and, if successful, you can assign this action to the component you need.
To create an IAM user, follow - only select AWSLambda_FullAccess in Permissions policies.
When running UI Bakery in the Production environment, we strongly recommend limiting IAM user's access only to the operations they are allowed to perform (for example, to access only specific Lambda functions). For more information, please refer to .
After you've completed all the steps above, you can now proceed to connecting your AWS Lambda data source. Follow the instruction below