instacart / instacart/arn

Allow ARNs to retrieve region and account from Boto3 session

Open
#8 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
44
Forks
3
PR merge metrics
No merged PRs in 30d

Description

A boto3 Session object has the `Session.region_name` field, and can call `Session.client('sts').get_caller_identity()` to discover the account in which it is operating (this call has no authorization check, so it is always allowed). When creating an ARN class, I should be able to tell it to use either the default session, or a session I provide, to discover these values (subject to whether the ARN needs those values, as covered in #7).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.