Skip to content

Commit

Permalink
Fall back to STS endpoint url as default (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikschubert authored Dec 28, 2023
1 parent aaed2e5 commit 5b38bc5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ pip install https://github.com/boto/botocore/archive/v2.zip https://github.com/a

## Change Log

* v0.22.0: Use fallback for endpoint detection. Should prevent most cases of `Unable to find LocalStack endpoint for service ...`
* v0.21.1: Introducing semantic versioning and list of services without endpoints
* v0.21: Use placeholder credentials and region only if Boto cannot not find them, fix output streaming for logs tail call
* v0.20: Small fixes for Python 2.x backward compatibility
Expand Down
4 changes: 3 additions & 1 deletion bin/awslocal
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ def get_service_endpoint(localstack_host=None):
if service == 's3api':
service = 's3'
endpoints = config.get_service_endpoints(localstack_host=localstack_host)
return endpoints.get(service)
# defaulting to use the endpoint for STS (could also be one of the other services in the existing list)
# otherwise newly-added services in LocalStack would always need to be added to the _service_ports dict in localstack_client
return endpoints.get(service) or endpoints.get("sts")


def usage():
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

setup(
name='awscli-local',
version='0.21.1',
version='0.22.0',
description=description,
long_description=README,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 5b38bc5

Please sign in to comment.