Head over to IAM, make a new user, and call it
retool-lambda-invoker. Only enable "programmatic access".
Click Attach existing policies directly. If you already have a the correct Lambda permissions policy set up, you can search for it and select it here; however, it's likely that you'll have to create a new policy. If so, click on the Create Policy button.
In the policy editor, make the following selections:
Under Service search for and select Lambda.
Under Access level > List select ListFunctions.
Under Access level > Write select InvokeFunction.
Under Resources select All resources.
Click Review Policy.
Create a Name for your policy (you can call it something like "LambdaInvoker") and click Create Policy.
Back in the "Add user" screen, search for and select the Lambda permissions policy you just created, or just select your pre-existing policy if you skipped the creation step above.
Click Next (you can skip adding Tags) and then Create User.
Your Lambda user has been created!
In the resources selector view - choose "Lambda." You will be prompted to provide an Access Key ID and Secret Access Key ID, as well as specify your AWS Region. You can find out how to obtain these in the Lambda Docs.
You can then specify the Lambda function you want to call from the dropdown, and add a payload:
Updated 9 months ago