Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"type": "enhancement",
"type": "feature",
"category": "Migration",
"description": "Implement a ``--v2-debug`` flag and ``AWS_CLI_UPGRADE_DEBUG_MODE`` environment variable that detects breaking changes for AWS CLI v2 for entered commands."
}
15 changes: 8 additions & 7 deletions awscli/customizations/globalargs.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,12 @@ def detect_migration_breakage(parsed_args, remaining_args, session, **kwargs):
out_file=sys.stderr
)
if (
s3_config is None or (
s3_config is not None and s3_config.get(
'us_east_1_regional_endpoint',
'legacy'
) == 'legacy' and region in ('us-east-1', None)
)
(
s3_config is None
or s3_config.get('us_east_1_regional_endpoint', 'legacy')
== 'legacy'
)
and region in ('us-east-1', None)
):
session.register(
'request-created.s3.*',
Expand Down Expand Up @@ -220,7 +220,8 @@ def warn_if_east_configured_global_endpoint(request, operation_name, **kwargs):
# The regional us-east-1 endpoint is used in certain cases (e.g.
# FIPS/Dual-Stack is enabled). Rather than duplicating this logic
# from botocore, we check the endpoint URL directly.
if 's3.amazonaws.com' in request.url:
parsed_url = urlparse.urlparse(request.url)
if parsed_url.hostname.endswith('s3.amazonaws.com'):
uni_print(
'\nAWS CLI v2 UPGRADE WARNING: When you configure AWS CLI v2 to '
'use the `us-east-1` region, it uses the true regional endpoint '
Expand Down