Function Caller
Last updated
Last updated
The function-caller component is a secure, reusable building block in P0 that enables the platform to invoke AWS Lambda functions on your behalf. It acts as the bridge between P0 and your cloud environment, allowing notifications and events to trigger real-time execution of your custom logic inside AWS.
This component is important because it:
Establishes a trusted connection between P0 and your AWS account
Ensures secure invocation of your Lambda functions using least-privilege permissions
Allows you to reuse the same Lambda across multiple integrations or event types without repeating setup steps
Provides flexibility, enabling you to integrate deeply with your internal systems, automation flows, or alerting infrastructure
Setting up the function-caller is the first step toward enabling powerful serverless automation with your P0 events.
This guide walks you through setting up an AWS function caller integration component, but before diving into the steps, make sure you have an AWS Lambda function.
First, you'll need to define an installer component in P0 that knows how to call your Lambda function. This component will give P0 permission to invoke this specific lambda function
Go to p0.app in your browser, navigate to Integrations, and select AWS.
Select the function caller component.
Enter the full ARN of your AWS Lambda function. This is required so P0 knows which function to invoke.
Follow the provided instructions to provision access using AWS CloudShell or Terraform. This step grants P0 permission to call your Lambda securely.
Once completed, P0 is now set up to call your Lambda function