pulumi / examples

Infrastructure, containers, and serverless apps to AWS, Azure, GCP, and Kubernetes... all deployed with Pulumi
https://www.pulumi.com
Apache License 2.0
2.33k stars 874 forks source link

Create Pulumi to AWS OIDC Configuration Example #1511

Closed toriancrane closed 9 months ago

toriancrane commented 9 months ago

Create Pulumi to AWS OIDC Configuration Example

Note that this needs to be run in an AWS account that does not already have Pulumi configured as a provider.

scottslowe commented 9 months ago

@toriancrane AIUI this needs to be run in an AWS account where it has not previously been run (which counts our "dev-sandbox" account out). Can it be run multiple times (pulumi up followed by pulumi destroy) for testing?

toriancrane commented 9 months ago

@toriancrane AIUI this needs to be run in an AWS account where it has not previously been run (which counts our "dev-sandbox" account out). Can it be run multiple times (pulumi up followed by pulumi destroy) for testing?

Yes it has to be in an account that does not already have it configured for Pulumi (added a note in the description to make that more visible). I had to run in my personal AWS account to test, and I was able to up/destroy multiple times no problem.

toriancrane commented 9 months ago

@scottslowe I saw your note on the old PR re: programmatically retrieving the name of the Pulumi Org. I couldn't find it in the docs at all, but I just tried with org = pulumi.get_organization() and it actually worked! I will be updating with this, thank you!