Skip to content

Commit 5b38bc5

Browse files
Fall back to STS endpoint url as default (#80)
1 parent aaed2e5 commit 5b38bc5

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ pip install https://github.com/boto/botocore/archive/v2.zip https://github.com/a
9292

9393
## Change Log
9494

95+
* v0.22.0: Use fallback for endpoint detection. Should prevent most cases of `Unable to find LocalStack endpoint for service ...`
9596
* v0.21.1: Introducing semantic versioning and list of services without endpoints
9697
* v0.21: Use placeholder credentials and region only if Boto cannot not find them, fix output streaming for logs tail call
9798
* v0.20: Small fixes for Python 2.x backward compatibility

bin/awslocal

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ def get_service_endpoint(localstack_host=None):
5050
if service == 's3api':
5151
service = 's3'
5252
endpoints = config.get_service_endpoints(localstack_host=localstack_host)
53-
return endpoints.get(service)
53+
# defaulting to use the endpoint for STS (could also be one of the other services in the existing list)
54+
# otherwise newly-added services in LocalStack would always need to be added to the _service_ports dict in localstack_client
55+
return endpoints.get(service) or endpoints.get("sts")
5456

5557

5658
def usage():

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
setup(
1818
name='awscli-local',
19-
version='0.21.1',
19+
version='0.22.0',
2020
description=description,
2121
long_description=README,
2222
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)