Skip to content

Commit 162df63

Browse files
author
Arash Ghoreyshi
committed
Add aws-region in auth example
1 parent 88c1ef9 commit 162df63

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ Here's an example of using OIDC with the aws-actions/configure-aws-credentials a
186186
- name: Configure AWS credentials with OIDC
187187
uses: aws-actions/configure-aws-credentials@v2
188188
with:
189-
role-to-assume: arn:aws:iam::123456789012:role/GitHubActionRole
189+
role-to-assume: my-role
190+
aws-region: my-region
190191
```
191192

192193
To use OIDC authentication, you must configure a trust policy in AWS IAM that allows GitHub Actions to assume an IAM role. Here's an example trust policy:

0 commit comments

Comments
 (0)