Skip to content

boto3-refresh-session now supports ECS

Latest
Compare
Choose a tag to compare
@michaelthomasletts michaelthomasletts released this 13 Jun 09:21
· 116 commits to main since this release

boto3-refresh-session (BRS) was originally designed to automatically refresh temporary security credentials using only STS.Client.assume_role.

To expand BRS's features, the latest changes include an ecs module that supports automatic refresh of temporary security credentials for ECS as well and use ECS metadata to retrieve credentials. Those changes were tested locally using mocked AWS credentials and a mocked AWS API. No unit / integration tests were added in the latest changes, however. Early adopters of the ecs module are encouraged to open issues if any appear.

Example usage:

from boto3_refresh_session import RefreshableSession
session = RefreshableSession(method="ecs")
s3 = session.client("s3")
s3.list_buckets()

Additional services will be introduced to BRS over the next two to three months. Stay tuned.

What's Changed

Full Changelog: 1.1.3...1.2.0