Commit 53bd4a5
committed
Fix aws.sh SSO credential check to use export-credentials
The old early-exit used `aws sts get-caller-identity && aws ec2
describe-instances`, which can pass via env vars or static credentials
even when the SSO token is expired. boto3/polars uses the SSO profile
directly, so it would fail with UnauthorizedSSOTokenError while the CLI
check reported "already valid".
Replace with `aws configure export-credentials --format json`, which
exercises the full SSO credential chain and fails if the SSO token is
expired — matching exactly what boto3 checks.
Made-with: Cursor1 parent 1c0c939 commit 53bd4a5
1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
0 commit comments