Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ pip install https://github.com/boto/botocore/archive/v2.zip https://github.com/a

## Change Log

* v0.23.0: Display full stack traces only in `--debug` mode; non-debug runs now show concise error messages, consistent with `awscli` behavior.
Comment thread
sannya-singal marked this conversation as resolved.
Outdated
* v0.22.1: Fix issue with cfn package and cfn deploy with awscli >= 1.41.9
* 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
Expand Down
12 changes: 11 additions & 1 deletion bin/awslocal
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import os
import sys
import subprocess
import re
import traceback

PARENT_FOLDER = os.path.realpath(os.path.join(os.path.dirname(__file__), '..'))
S3_VIRTUAL_ENDPOINT_HOSTNAME = 's3.localhost.localstack.cloud'
Expand All @@ -41,6 +42,8 @@ def get_service():
if not param.startswith('-'):
return param

def is_debug_mode():
return "--debug" in sys.argv

def get_service_endpoint(localstack_host=None):
service = get_service()
Expand Down Expand Up @@ -83,7 +86,14 @@ def main():
try:
import awscli.clidriver # noqa: F401
except Exception:
return run_as_separate_process()
try:
return run_as_separate_process()
except Exception as e:
if is_debug_mode():
traceback.print_exc()
else:
print(f"\n{e}")
sys.exit(1)
Comment thread
sannya-singal marked this conversation as resolved.
patch_awscli_libs()
run_in_process()

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.22.1',
version='0.22.2',
description=description,
long_description=README,
long_description_content_type='text/markdown',
Expand Down