Skip to content

Commit

Permalink
Set AWS_DEFAULT_REGION to us-east-1 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mconigliaro committed Feb 3, 2025
1 parent b71cdff commit 8dc99db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- [aws] Add two minute expiration buffer to TTLs to prevent long-running
commands from failing by starting the renewal process early.
- [aws] Display AWS user code during device authorization.
- [aws] Set `AWS_DEFAULT_REGION` to `us-east-1` by default

## 1.1.0 - 2022-10-18

Expand Down
3 changes: 3 additions & 0 deletions authum/plugins/aws/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
logging.getLogger("botocore").propagate = False
log = logging.getLogger(__name__)

if not boto3.Session().region_name:
os.environ["AWS_DEFAULT_REGION"] = "us-east-1"


class AWSData(authum.persistence.KeyringItem):
"""Represents persistent AWS data"""
Expand Down

0 comments on commit 8dc99db

Please sign in to comment.