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 39, in boto3_client
credential_provider = core_session.get_component('credential_provider').get_provider('assume-role')
File "/usr/local/lib/python3.9/site-packages/botocore/session.py", line 685, in get_component
return self._components.get_component(name)
File "/usr/local/lib/python3.9/site-packages/botocore/session.py", line 924, in get_component
self._components[name] = factory()
File "/usr/local/lib/python3.9/site-packages/botocore/session.py", line 151, in _create_credential_resolver
return botocore.credentials.create_credential_resolver(
File "/usr/local/lib/python3.9/site-packages/botocore/credentials.py", line 64, in create_credential_resolver
metadata_timeout = session.get_config_variable('metadata_service_timeout')
File "/usr/local/lib/python3.9/site-packages/botocore/session.py", line 240, in get_config_variable
return self.get_component('config_store').get_config_variable(
File "/usr/local/lib/python3.9/site-packages/botocore/configprovider.py", line 293, in get_config_variable
return provider.provide()
File "/usr/local/lib/python3.9/site-packages/botocore/configprovider.py", line 390, in provide
value = provider.provide()
File "/usr/local/lib/python3.9/site-packages/botocore/configprovider.py", line 451, in provide
scoped_config = self._session.get_scoped_config()
File "/usr/local/lib/python3.9/site-packages/botocore/session.py", line 340, in get_scoped_config
raise ProfileNotFound(profile=profile_name)
botocore.exceptions.ProfileNotFound: The config profile (XX) could not be found
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.0 (default, Nov 30 2020, 15:21:09) [Clang 12.0.0 (clang-1200.0.32.27)] boto3 version: 1.15.6 Platform: macOS-10.16-x86_64-i386-64bit Args: ['/usr/local/bin/awslogs', 'get', '--profile', 'XX', '--aws-region', 'us-west-1', '--timestamp', '--watch', '--no-group', '--no-stream', '--ingestion-time', 'vpc-flow-logs-XX-XXX'] Config: {'aws_access_key_id': 'SENSITIVE', 'aws_secret_access_key': 'SENSITIVE', 'aws_session_token': 'SENSITIVE', 'aws_profile': 'SENSITIVE', 'aws_region': 'ap-southeast-2', 'aws_endpoint_url': None, 'log_group_name': 'vpc-flow-logs-XX', 'log_stream_name': 'ALL', 'filter_pattern': None, 'watch': True, 'watch_interval': 1, 'output_group_enabled': False, 'output_stream_enabled': False, 'output_timestamp_enabled': True, 'output_ingestion_time_enabled': True, 'start': '5m', 'end': None, 'color': 'auto', 'query': None, 'func': 'list_logs'}
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 39, in boto3_client credential_provider = core_session.get_component('credential_provider').get_provider('assume-role') File "/usr/local/lib/python3.9/site-packages/botocore/session.py", line 685, in get_component return self._components.get_component(name) File "/usr/local/lib/python3.9/site-packages/botocore/session.py", line 924, in get_component self._components[name] = factory() File "/usr/local/lib/python3.9/site-packages/botocore/session.py", line 151, in _create_credential_resolver return botocore.credentials.create_credential_resolver( File "/usr/local/lib/python3.9/site-packages/botocore/credentials.py", line 64, in create_credential_resolver metadata_timeout = session.get_config_variable('metadata_service_timeout') File "/usr/local/lib/python3.9/site-packages/botocore/session.py", line 240, in get_config_variable return self.get_component('config_store').get_config_variable( File "/usr/local/lib/python3.9/site-packages/botocore/configprovider.py", line 293, in get_config_variable return provider.provide() File "/usr/local/lib/python3.9/site-packages/botocore/configprovider.py", line 390, in provide value = provider.provide() File "/usr/local/lib/python3.9/site-packages/botocore/configprovider.py", line 451, in provide scoped_config = self._session.get_scoped_config() File "/usr/local/lib/python3.9/site-packages/botocore/session.py", line 340, in get_scoped_config raise ProfileNotFound(profile=profile_name) botocore.exceptions.ProfileNotFound: The config profile (XX) could not be found