You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When credentials are available via the AWS SSO Identity Center ("IDC"), we can [reasonably] easily get AWS credentials for use with the AWS tools that we know and love (SDKs, CLIs, PowerShell modules, etc.).
3
5
4
6
Herein is a PowerShell module that simplifies getting accounts, roles, and credentials for some identity (the user).
@@ -10,6 +12,7 @@ Simplify the creation of AWS credentials to SSO accounts/roles that an identity
10
12
### Prerequisite Modules
11
13
If you don't already have available the two AWS SSO* modules, install them right quick:
## get the SSO-related roles to which we are entitled in the given AWS account
56
59
get sso account role list |
57
-
## filter on <whatveer we like> to get just the account/role info for which to get temp creds
60
+
## if not filtering on initial "get sso account list" call via Name param, then filter here on <whatveer we like> to get just the account/role info for which to get temp creds
## save to the AWS creds file the temp creds for each account/role
@@ -83,7 +85,7 @@ A mostly realistic example of getting some credentials.
83
85
And, to see that example as a likely candidate to paste straight into a PowerShell session (one-line format):
84
86
```PowerShell
85
87
## make a new SSO OIDC token, get account/role info, filter, get cred for role, get AWS temp cred, save to the AWS creds file the temp creds for each account/role
0 commit comments