1. Packages
  2. AWS
  3. How-to Guides
  4. AWS OIDC Pulumi program in TypeScript
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

AWS OIDC Pulumi program in TypeScript

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

    View Code

    A Pulumi template to:

    • Create AWS resources for AWS OIDC (IdP + Role)
    • Create a new Pulumi Cloud ESC Environment

    Last update: September 2024

    πŸ“‹ Pre-requisites

    πŸ‘©β€πŸ« 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 already
    pulumi login
    
    # pick a name for your output directory (--dir is optional, omit for pwd)
    D=my-aws-oidc
    pulumi new https://github.com/pulumi/examples/aws-ts-oidc-provider-pulumi-cloud --dir ${D}
    cd ${D}
    

    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
    
    aws logo
    AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi