---
title: "Set up cloud OIDC from the Pulumi CLI"
description: "The new pulumi env setup command configures OIDC trust for AWS, Azure, and Google Cloud and creates the ESC environments that use it."
url: "https://www.pulumi.com/releases/changelog/2026-09-11-cloud-oidc-from-the-cli/"
updated: "2026-09-11"
image: "https://www.pulumi.com/assets/og/releases/changelog/2026-09-11-cloud-oidc-from-the-cli.png"
---

# Set up cloud OIDC from the Pulumi CLI

The new pulumi env setup command configures OIDC trust for AWS, Azure, and Google Cloud and creates the ESC environments that use it.

You can now configure keyless cloud authentication without leaving your terminal. The new [`pulumi env setup`](https://www.pulumi.com/docs/iac/cli/commands/pulumi_env_setup/) command sets up OIDC trust for AWS, Azure, or Google Cloud and creates the [Pulumi ESC](https://www.pulumi.com/docs/esc/) environments that use it, so your stacks and deployments can pull short-lived cloud credentials instead of storing long-lived secrets.

```bash
pulumi env setup aws
```

The command prompts for anything you don't pass as flags, such as which policy to attach and which accounts or projects to cover, then prints everything it created when it's done.

To learn more, read the [announcement post](https://www.pulumi.com/blog/esc-oidc-setup-cli/) or the [`pulumi env setup` documentation](https://www.pulumi.com/docs/iac/cli/commands/pulumi_env_setup/).
