> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloudthinker.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Pulumi

> Connect Pulumi Cloud over OAuth so CloudThinker can inventory stacks, search managed resources, and review policy violations

Connect Pulumi Cloud so [CloudThinker](https://docs.cloudthinker.io/guide/agents/overview.md) can list your stacks, find the resources Pulumi manages, and triage policy violations. You sign in with Pulumi's OAuth flow, so you never paste a Pulumi access token into CloudThinker.

## Prerequisites

* A Pulumi Cloud account that belongs to the organization holding your stacks.
* The **Admin** role in the CloudThinker workspace. Only workspace Admins can add, edit, or remove connections. See [Roles](https://docs.cloudthinker.io/guide/security/roles.md).

> [!NOTE]
>
> CloudThinker uses the authorizing account's default Pulumi organization unless you name another organization that account belongs to in your prompt.

## Setup

**1. Open the Pulumi connection**

Open **More → Workspace settings → Connections**, select **Pulumi**, and click **Connect**. A Pulumi authorization page opens in a pop-up.

**2. Sign in and authorize**

Sign in to the Pulumi account that can see your stacks, then approve access.

**3. Return to CloudThinker**

Pulumi sends you back to CloudThinker, which stores the OAuth tokens for you.

**Success state:** the Pulumi connection shows a **Connected** status.

There are no fields to fill in. Pulumi issues the OAuth tokens during authorization, and the endpoint is fixed at `mcp.ai.pulumi.com`.

## Required permissions

CloudThinker gets the same Pulumi access as the account that authorized it. Read access to the organization covers every read capability below.

Deploy to AWS and Neo tasks also run as that account, so they work only if the account is allowed to do the same thing in Pulumi. With a read-only account, Pulumi refuses them.

> [!TIP]
>
> Authorize with an account that can read the organization but doesn't administer it, unless you plan to deploy through CloudThinker.

## Agent capabilities

| Capability | What CloudThinker does | Checked by Approvals |
| - | - | - |
| **Stack inventory** | Lists stacks with their project and last update | No |
| **Resource search** | Finds Pulumi-managed resources by name, type, project, or stack | No |
| **Policy review** | Lists policy violations grouped by enforcement level, with the stacks they hit | No |
| **Registry lookup** | Reads provider resource and function schemas from the Pulumi Registry | No |
| **Organization members** | Lists the organization's members | No |
| **Pulumi Neo history** | Reads past Pulumi Neo tasks | No |
| **Deploy to AWS** | Provisions resources in AWS | Yes |
| **Drive Pulumi Neo** | Starts or continues a Neo task, or resets a Neo conversation | Yes |

Pulumi Neo is Pulumi's own AI agent. A Neo task can deploy infrastructure and change a repository, which is why starting or continuing one goes through Approvals.

A stack is identified by organization, project, and stack name together, so CloudThinker reports all three. It doesn't print stack outputs, configuration values, or secrets.

### Verify the connection

```text theme={null}
List my Pulumi stacks with their project and organization
```

Expect a table of stacks. An empty result means the authorizing account's default organization has no stacks, not that the connection is broken.

### Example prompts

```text theme={null}
Which Pulumi stacks have mandatory policy violations, and which policies fail most often?
Find every S3 bucket Pulumi manages and name the stack that owns each one
Read the aws:s3/bucket schema from the Pulumi Registry and list its required inputs
```

## Write access

Four tools change real state: deploy to AWS, plus the three tools that drive Pulumi Neo. Each call goes through Approvals on its own, and approving one call never approves the next.

Every change an agent makes goes through your workspace's [Approvals](https://docs.cloudthinker.io/guide/approvals/overview.md) first. On the default **Auto · Rules + AI · Ask me** mode, AI judgment can let a safe change run without asking — and an Allow Rule can too, once CloudThinker turns on [Rule enforcement](https://docs.cloudthinker.io/guide/approvals/rules.md#troubleshooting) for your workspace. Choose **Manual** to approve every change yourself.

When a person approves, CloudThinker names the organization, stack, and effect first. If you reject a call, CloudThinker doesn't retry it. Ask again in a new message if you change your mind. See [Approvals](https://docs.cloudthinker.io/guide/approvals/overview.md) for how gated tools work.

> [!WARNING]
>
> Approve a deployment only when you recognize the stack. A Pulumi deployment creates real resources and bills your cloud account.

CloudThinker exposes a reviewed list of Pulumi tools. A tool Pulumi adds later stays hidden until it has been reviewed and marked as a read or a write.

## Troubleshooting

> [accordion] The OAuth flow doesn't complete
>
> * **Nothing opens:** your browser blocked the pop-up. Allow pop-ups for CloudThinker, then click **Connect** again.
> * **Wrong account:** your browser is signed in to a different Pulumi account. Sign in to the right one at app.pulumi.com, then click **Connect** again.
> * **You declined access:** click **Connect** again and approve on the Pulumi page.

> [accordion] CloudThinker reports no stacks
>
> CloudThinker uses the authorizing account's default Pulumi organization unless you name another organization that account belongs to in your prompt. Name the organization that holds the stacks. If the account isn't a member, reconnect with one that is.

> [accordion] CloudThinker says it can't reach an organization
>
> The connection reaches only organizations the authorizing Pulumi user belongs to. Add the user to the organization in Pulumi, or disconnect and authorize with an account that already belongs to it.

> [accordion] A deployment keeps asking for confirmation
>
> That's Approvals, and it checks each call on its own. Answer the prompt in the conversation to continue. To stop being asked for a stack you trust, an **Allow** [Rule](https://docs.cloudthinker.io/guide/approvals/rules.md) can let those calls run, once CloudThinker turns on Rule enforcement for your workspace.

## Security

* **Least privilege** — grant only the permissions the agents need for your use case; start read-only and widen later.
* **Read-only by default** — use read-only credentials unless you want agents to make changes through this connection.
* **Rotate credentials** — rotate keys and tokens on your normal schedule; CloudThinker picks up the new value when you update the connection.
* **Revoke on offboarding** — remove the credential at the provider when you delete a connection or a teammate leaves.

- **Keep the gate on.** Deploy to AWS and the Pulumi Neo tools are the only tools on this connection that can change your cloud or a repository.
- **Switch accounts deliberately.** The connection reaches whatever the authorizing account reaches. To change accounts, open **More → Workspace settings → Connections**, select **Pulumi**, click **Disconnect** on the detail panel, then connect again with the other account.

## Related

> [card] [Approvals](https://docs.cloudthinker.io/guide/approvals/overview.md)
>
> Control when CloudThinker asks before a deployment.

> [card] [HCP Terraform connection](https://docs.cloudthinker.io/guide/connections/terraform.md)
>
> Connect your other infrastructure-as-code service.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.