Function Caller

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.

Before you begin

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.

Install the AWS function caller component

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

  1. Go to p0.app in your browser, navigate to Integrations, and select AWS.

  2. Select the function caller component.

  1. Enter the full ARN of your AWS Lambda function. This is required so P0 knows which function to invoke.

  1. Follow the provided instructions to provision access using AWS CloudShell or Terraform. This step grants P0 permission to call your Lambda securely.

  1. Once completed, P0 is now set up to call your Lambda function

Last updated