Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.superleap.com/llms.txt

Use this file to discover all available pages before exploring further.

Follow these steps to deploy the Superleap Appflow connector in your AWS account.

Step 1: Create a Lambda Function

Create a new Lambda function in AWS. Choose Python 3.12 as the runtime for compatibility. Create Lambda function

Step 2: Upload the Connector Code

Upload the superleap-connector-python.zip file to the Lambda function to overwrite the default Lambda code. Upload superleap-connector-python.zip

Step 3: Create an IAM Policy

Go to IAM → Policies and create a new policy:
  1. Choose Secrets Manager as the service
  2. Add the GetSecretValue permission
Create Policy from IAM
  1. Under Specify ARNs, choose your region and set the resource secret format to:
appflow!{account_id}-Superleap-*
Specify ARNs
  1. Add a name and description, then create the policy
Create Policy

Step 4: Navigate to the Lambda Execution Role

Go to the Lambda function → ConfigurationPermissions → click on the Role name shown there. This will take you to the IAM role used by the Lambda function. Lambda configuration permission

Step 5: Attach the IAM Policy to the Role

  1. Click Add permission and attach the policy created in Step 3 to the role
Add permission and attach Attach policy to the role
  1. Confirm the permission is reflected in the Lambda function’s permissions as well
Confirm permission in Lambda

Step 6: Set the Lambda Handler

Edit the Handler under Runtime Settings:
  1. Set the runtime to Python 3.12
Edit Handler
  1. Set the handler to:
custom_connector_superleap.handlers.lambda_handler.superleap_lambda_handler
Set Handler

Step 7: Create and Add a Lambda Layer

  1. Go to Lambda → Layers and create a new layer
  2. Upload the python.zip file
  3. Set the compatible runtime to Python 3.12 and architecture to x86_64
Create a layer
  1. Go back to the Lambda function, scroll down to Layers, and click Add a layer
Add layer
  1. Choose Custom layers and select the layer created above
Choose custom layer

Step 8: Add a Resource-Based Policy

In the Lambda function, scroll down to Resource-based policy statements and add a new permission: Resource-based policy
  • Principal: appflow.amazonaws.com
  • Action: lambda:InvokeFunction
Add Principal Save the policy.
Once these steps are complete, proceed to Configuration to register the connector in AppFlow and create your first flow.