Skip to content

Commit

Permalink
Update aws-login.md (#13042)
Browse files Browse the repository at this point in the history
Extend the example to show how to the values would typically be consumed.
  • Loading branch information
jkodroff authored Oct 5, 2024
1 parent 5ebe0d4 commit 9e61224
Showing 1 changed file with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,18 @@ The `aws-login` provider enables you to log in to your AWS account using OpenID
## Example

```yaml
aws:
login:
fn::open::aws-login:
oidc:
roleArn: arn:aws:iam::123456789:role/esc-oidc
sessionName: pulumi-environments-session
values:
aws:
login:
fn::open::aws-login:
oidc:
duration: 1h
roleArn: arn:aws:iam::012345678912:role/role-abcd123
sessionName: pulumi-esc
environmentVariables:
AWS_ACCESS_KEY_ID: ${aws.login.accessKeyId}
AWS_SECRET_ACCESS_KEY: ${aws.login.secretAccessKey}
AWS_SESSION_TOKEN: ${aws.login.sessionToken}
```
## Configuring OIDC
Expand Down

0 comments on commit 9e61224

Please sign in to comment.