{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/5"},{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/5"}],"enrichment":{"capability":"Simplifies AWS role assumption in boto3 by wrapping STS AssumeRole calls into a single function that automatically refreshes expired credentials and generates session names.","skillfed_tags":["aws","iam","credential-management"],"use_cases":["Assume an AWS role in a Lambda function once at initialization and reuse it across invocations without re-assuming on every call.","Simplify multi-account AWS workflows by chaining role assumptions with automatic credential refresh in application code.","Reduce boilerplate when writing boto3 scripts that need to operate under an assumed role with temporary credentials.","Implement cross-account access patterns in microservices where each service assumes a role in another account on startup.","Build automation tools that assume different roles for different tasks without manually managing STS calls and session creation."],"what_it_does":"aws-assume-role-lib wraps the verbose boilerplate of AWS STS AssumeRole into a single function call on a boto3 Session. Instead of manually calling sts.assume_role(), parsing the response, and creating a new session with temporary credentials, you pass a session and role ARN to assume_role() and get back a session ready to use. The library automatically generates a role session name if you don't provide one, and crucially, it handles credential expiration by refreshing them transparently when needed\u2014eliminating the need to call AssumeRole on every Lambda invocation or manually track credential lifetime.\n\nThe package depends only on boto3 and is designed to work across Python 3.6 through 3.10. It supports all standard AssumeRole parameters (policies, duration, external ID, tags, etc.) and lets you pass Policy as a dict instead of a JSON string, and DurationSeconds as a timedelta. For Lambda workloads, you initialize the assumed role session once outside the handler and reuse it across invocations, calling AssumeRole only when credentials actually expire.","worth_installing":"Yes, if you are already using boto3 and need to assume roles programmatically. The library genuinely simplifies a common pattern and has no known vulnerabilities. However, be aware that the package is abandoned\u2014last updated in May 2022 with no recent commits. If you need active maintenance or compatibility updates for future boto3 versions, consider whether you can afford to fork it or maintain it internally, or evaluate whether AWS's built-in profile-based role assumption in ~/.aws/config meets your needs instead."},"id":"aws-assume-role-lib","links":{"html":"https://skillfed.io/packages/aws-assume-role-lib","md":"https://skillfed.io/packages/aws-assume-role-lib.md","pypi":"https://pypi.org/project/aws-assume-role-lib/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2022-05-14","license_spdx":null,"license_treatment":"permissive","name":"aws-assume-role-lib","python_support":"supports_current","summary":"Assumed role session chaining (with credential refreshing) for boto3"},"popularity":{"monthly_downloads":622935,"position":5706,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.10.0"}
