awslogs icon indicating copy to clipboard operation
awslogs copied to clipboard

awslogs starting issue

Open shivambansa opened this issue 2 years ago • 0 comments
trafficstars

You've found a bug! Please, raise an issue attaching the following traceback https://github.com/jorgebastida/awslogs/issues/new

Version: 0.14.0 Python: 3.9.16 (main, Feb 23 2023, 00:00:00) [GCC 11.3.1 20221121 (Red Hat 11.3.1-4)] boto3 version: 1.26.113 Platform: Linux-6.1.21-1.45.amzn2023.x86_64-x86_64-with-glibc2.34 Args: ['/usr/local/bin/awslogs'] Config: {'aws_access_key_id': 'SENSITIVE', 'aws_secret_access_key': 'SENSITIVE', 'aws_session_token': 'SENSITIVE', 'aws_profile': 'SENSITIVE'}

Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/awslogs/bin.py", line 175, in main logs = AWSLogs(**vars(options)) File "/usr/local/lib/python3.9/site-packages/awslogs/core.py", line 89, in init self.client = boto3_client( File "/usr/local/lib/python3.9/site-packages/awslogs/core.py", line 44, in boto3_client return session.client( File "/usr/local/lib/python3.9/site-packages/boto3/session.py", line 299, in client return self._session.create_client( File "/usr/local/lib/python3.9/site-packages/botocore/session.py", line 976, in create_client client = client_creator.create_client( File "/usr/local/lib/python3.9/site-packages/botocore/client.py", line 155, in create_client client_args = self._get_client_args( File "/usr/local/lib/python3.9/site-packages/botocore/client.py", line 485, in _get_client_args return args_creator.get_client_args( File "/usr/local/lib/python3.9/site-packages/botocore/args.py", line 92, in get_client_args final_args = self.compute_client_args( File "/usr/local/lib/python3.9/site-packages/botocore/args.py", line 205, in compute_client_args endpoint_config = self._compute_endpoint_config( File "/usr/local/lib/python3.9/site-packages/botocore/args.py", line 313, in _compute_endpoint_config return self._resolve_endpoint(**resolve_endpoint_kwargs) File "/usr/local/lib/python3.9/site-packages/botocore/args.py", line 418, in _resolve_endpoint return endpoint_bridge.resolve( File "/usr/local/lib/python3.9/site-packages/botocore/client.py", line 590, in resolve resolved = self.endpoint_resolver.construct_endpoint( File "/usr/local/lib/python3.9/site-packages/botocore/regions.py", line 229, in construct_endpoint result = self._endpoint_for_partition( File "/usr/local/lib/python3.9/site-packages/botocore/regions.py", line 277, in _endpoint_for_partition raise NoRegionError() botocore.exceptions.NoRegionError: You must specify a region.

shivambansa avatar Apr 14 '23 18:04 shivambansa