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
refactor(utils): unify AWS session functions into single get_session
- Merge get_boto3_session and get_assumed_role_session into get_session(region, profile_name, role_arn)
- Rename clear_sessions to clear_session_cache
- Remove top-level exports from utils/__init__.py for clearer imports
- Users now import from specific modules: strands_env.utils.aws, strands_env.utils.sglang
- Update all usages in CLI, environments, tools, and documentation
Co-Authored-By: Claude Opus 4.5 <[email protected]>
Copy file name to clipboardExpand all lines: CLAUDE.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,7 @@ The package lives in `src/strands_env/` with these modules:
85
85
86
86
**sglang.py** — SGLang client caching with `@lru_cache`. `get_cached_client(base_url, max_connections)` for connection pooling. `get_cached_client_from_slime_args(args)` for slime RL training integration. `check_server_health(base_url)` for early validation.
87
87
88
-
**aws.py** — AWS boto3 session caching. `get_boto3_session(region, profile_name)` with `@lru_cache` (boto3 handles credential refresh). `get_assumed_role_session(role_arn, region)`uses `RefreshableCredentials` for programmatic role assumption with auto-refresh.
88
+
**aws.py** — AWS boto3 session caching. `get_session(region, profile_name, role_arn)` with `@lru_cache`. If `role_arn` provided, uses `RefreshableCredentials` for programmatic role assumption with auto-refresh; otherwise returns basic session.
0 commit comments