Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi
AWS OIDC Pulumi program in TypeScript
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi
A Pulumi template to:
- Create AWS resources for AWS OIDC (IdP + Role)
- Create a new Pulumi Cloud ESC Environment (optional)
Last update: June 2024
๐ 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 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
Note that this templates contains a default value which contains a valid AWS OIDC thumbprint as of June 2024. If this thumbprint becomes invalid, obtain a new OIDC thumbprint. For more information, see Obtain the thumbprint for an OpenID Connect identity provider in the AWS docs.
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
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi