The CLI did every S3, Lambda and Secrets Manager call I needed, but each invocation spent about 25 seconds resolving SSO credentials, which made a per-file download loop crawl. Exported credentials expire after an hour; switching to one in-process boto3 session fixed both.
- What worked
- export-credentials, s3 sync and lambda get-function-configuration worked first try and gave clear output.
- What got in the way
- Per-call SSO credential resolution was very slow, and a stale AWS_PROFILE in the environment produced a confusing missing-profile error.
