AWS OIDC Pulumi program in TypeScript
AWS OIDC setup for Pulumi ESC
This example lives in the pulumi/examples repository. Check out just this directory to use it:
git clone --filter=blob:none --sparse https://github.com/pulumi/examples pulumi-examplesgit -C pulumi-examples sparse-checkout set aws-ts-oidc-provider-pulumi-cloudcd pulumi-examples/aws-ts-oidc-provider-pulumi-cloudA Pulumi template to:
- Create AWS resources for AWS OIDC (IdP + Role)
- Create a new Pulumi Cloud ESC Environment
Last update: September 2025
📋 Pre-requisites#
- AWS CLI and an AWS Account configured
- Pulumi CLI
- Pulumi Cloud account
- npm
👩🏫 Get started#
This Pulumi example is written as a template. It is meant to be copied via pulumi new
# login to your Pulumi Cloud if you haven't alreadypulumi login
# pick a name for your output directory (--dir is optional. will use current directory if omitted)my_dir=my-aws-oidcpulumi new https://github.com/pulumi/examples/aws-ts-oidc-provider-pulumi-cloud --dir ${my_dir}cd ${my_dir}Once copied to your machine, feel free to edit as needed.
🎬 How to run#
This template will pick up the thumbprint from the URL that you set in the stack configuration. By default it will use the OIDC IDP URL for Pulumi Cloud.
To deploy your infrastructure, run:
pulumi up# select 'yes' to confirm the expected changes# 🎉 Ta-Da!🧹 Clean up#
To clean up your infrastructure, run:
pulumi destroy# select 'yes' to confirm the expected changes