---
title: Configuring Lex V2
description: Connect PingOne Privilege to Amazon Lex V2 so AI discovery can review its agent inventory.
component: privilege
page_id: privilege:agent-privilege:configuration/workload-agent-apps/lex-v2
canonical_url: https://docs.pingidentity.com/privilege/agent-privilege/configuration/workload-agent-apps/lex-v2.html
llms_txt: https://docs.pingidentity.com/privilege/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
revdate: October 21, 2026
---

# Configuring Lex V2

Connect Amazon Web Services (AWS) *(tooltip: \<div class="paragraph">
\<p>An Amazon subsidiary providing cloud computing platforms.\</p>
\</div>)* Lex V2 as a workload agent application so AI discovery for workload agents can review the agents running in the account. Learn more in [Discover and manage workload agents](../../use-cases/workload-agents.html).

1. In the PingOne Privilege admin console, go to **AI Security > Workload Agents**.

2. Click the **Add Application** tab.

3. In the list of available applications, find **Lex V2** and click **[icon: plus, set=fa]Integrate**.

4. Enter a **Name** for the connection.

5. (Optional) Enter a **Description**.

6. Click **Next**.

7. Add your credentials using one of the following methods:

   * Enter the **Template URL** and **External ID** directly in the setup wizard.

   * Click **Open CF Template** to launch into AWS to enter credentials there.

8. Click **Next**.

9. After the stack status is **CREATE_COMPLETE**, open the **Outputs** tab in CloudFormation and paste the **Cross Account Role ARN** into the setup wizard.

10. (Optional): Add comma-separated **Regions**. Leave this field empty to scan all regions.

11. Review the summary, then click **Add Connection**.

You can now validate that the connection is active on the **Active Applications** tab.
