This App lets you trigger AWS Lambda functions that run in your own account. This is especially useful if you need to access private data or authorize the function to perform sensitive actions in your own AWS account.
The IAM user for this App must have at least the following permissions:
{
"Statement": [
{
"Effect": "Allow",
"Action": "lambda:InvokeFunction",
"Resource": "*" // can also be scoped down to your Bucket
}
]
}
You can also refer to the official AWS User Guide for more information about AWS Lambda permissions.
Example
do App(
"aws/lambda",
function_name="myFunction",
payload={"some":"data"},
async=false, // defaults to false if omitted
)