jorgebastida / jorgebastida/awslogs
You found a bug....v 0.15.0
- Dominant language
- Python
- Stars
- 5k
- Forks
- 342
- PR merge metrics
- No merged PRs in 30d
Description
Attaching traceback:
You've found a bug! Please, raise an issue attaching the following traceback
https://github.com/jorgebastida/awslogs/issues/new
Version: 0.15.0
Python: 3.13.2 (main, Feb 4 2025, 14:51:09) [Clang 16.0.0 (clang-1600.0.26.6)]
boto3 version: 1.35.37
Platform: macOS-15.3.1-arm64-arm-64bit-Mach-O
Args: ['/opt/homebrew/bin/awslogs', 'get', '/var/log/squid/access.log', '--profile', 'shdev-xro', '--aws-region', 'us-west-2 us-east-1 us-east-2 sa-east-1 eu-west-1 eu-central-1 ap-south-1', '--start=1d ago']
Config: {options}
Traceback (most recent call last):
File "/opt/homebrew/Cellar/awslogs/0.15.0_1/libexec/lib/python3.13/site-packages/awslogs/bin.py", line 206, in main
logs = AWSLogs(**vars(options))
File "/opt/homebrew/Cellar/awslogs/0.15.0_1/libexec/lib/python3.13/site-packages/awslogs/core.py", line 88, in __init__
self.client = boto3_client(
~~~~~~~~~~~~^
self.aws_profile,
^^^^^^^^^^^^^^^^^
...<4 lines>...
self.aws_endpoint_url,
^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/opt/homebrew/Cellar/awslogs/0.15.0_1/libexec/lib/python3.13/site-packages/awslogs/core.py", line 45, in boto3_client
return session.client(
~~~~~~~~~~~~~~^
"logs",
^^^^^^^
...<4 lines>...
endpoint_url=aws_endpoint_url or None,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/opt/homebrew/Cellar/awslogs/0.15.0_1/libexec/lib/python3.13/site-packages/boto3/session.py", line 297, in client
return self._session.create_client(
~~~~~~~~~~~~~~~~~~~~~~~~~~~^
service_name,
^^^^^^^^^^^^^
...<8 lines>...
config=config,
^^^^^^^^^^^^^^
)
^
File "/opt/homebrew/Cellar/awslogs/0.15.0_1/libexec/lib/python3.13/site-packages/botocore/session.py", line 924, in create_client
region_name = self._resolve_region_name(region_name, config)
File "/opt/homebrew/Cellar/awslogs/0.15.0_1/libexec/lib/python3.13/site-packages/botocore/session.py", line 1023, in _resolve_region_name
validate_region_name(region_name)
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/awslogs/0.15.0_1/libexec/lib/python3.13/site-packages/botocore/utils.py", line 1318, in validate_region_name
raise InvalidRegionError(region_name=region_name)
botocore.exceptions.InvalidRegionError: Provided region_name 'us-west-2 us-east-1 us-east-2 sa-east-1 eu-west-1 eu-central-1 ap-south-1' doesn't match a supported format.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the command from the traceback, then read awslogs/bin.py and awslogs/core.py around argument handling and boto3_client. The report does not specify the intended behavior or name a test, so the expected region-input behavior must be clarified before defining done.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, python
- Domain
- cli, cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100