Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The security token included in the request is invalid - AWS SSO #310

Open
BMonsalvatge opened this issue Aug 12, 2020 · 1 comment
Open

Comments

@BMonsalvatge
Copy link

I currently get the following error when trying to use awslogs on an account under AWS Control Tower and AWS SSO. Works fine on accounts not under SSO.

Traceback (most recent call last):
  File "/Users/user/.pyenv/versions/3.7.3/bin/awslogs", line 8, in <module>
    sys.exit(main())
  File "/Users/user/.pyenv/versions/3.7.3/lib/python3.7/site-packages/awslogs/bin.py", line 179, in main
    getattr(logs, options.func)()
  File "/Users/user/.pyenv/versions/3.7.3/lib/python3.7/site-packages/awslogs/core.py", line 229, in list_logs
    consumer()
  File "/Users/user/.pyenv/versions/3.7.3/lib/python3.7/site-packages/awslogs/core.py", line 170, in consumer
    for event in generator():
  File "/Users/user/.pyenv/versions/3.7.3/lib/python3.7/site-packages/awslogs/core.py", line 157, in generator
    response = self.client.filter_log_events(**kwargs)
  File "/Users/user/.pyenv/versions/3.7.3/lib/python3.7/site-packages/botocore/client.py", line 276, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/Users/user/.pyenv/versions/3.7.3/lib/python3.7/site-packages/botocore/client.py", line 586, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.errorfactory.UnrecognizedClientException: An error occurred (UnrecognizedClientException) when calling the FilterLogEvents operation: The security token included in the request is invalid
@BMonsalvatge
Copy link
Author

Fix was but updating the boto3 requirement to at least 1.14.0 in the setup.py file. Submitted #311

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant