Context
When neither endpoint_url nor region_code is specified in the S3 configuration, the code constructs a region-less S3 endpoint (e.g., https://{bucket}.s3.amazonaws.com). This behavior is non-standard for AWS S3 and may not work for all buckets, as AWS typically requires a region to be specified.
This behavior was implemented to maintain consistency with generate_s3_url in s3_utils.py.
Task
Add warning log messages in the following two locations when neither endpoint_url nor region_code is provided:
- Presto init script:
tools/deployment/presto-clp/scripts/init.py in the _resolve_s3_endpoint_url function
- Package startup script: Where S3 configuration is processed during CLP package startup
Suggested warning message
Neither 'endpoint_url' nor 'region_code' specified in S3 config. Using region-less S3 endpoint which may not work for all buckets.
References
Context
When neither
endpoint_urlnorregion_codeis specified in the S3 configuration, the code constructs a region-less S3 endpoint (e.g.,https://{bucket}.s3.amazonaws.com). This behavior is non-standard for AWS S3 and may not work for all buckets, as AWS typically requires a region to be specified.This behavior was implemented to maintain consistency with
generate_s3_urlins3_utils.py.Task
Add warning log messages in the following two locations when neither
endpoint_urlnorregion_codeis provided:tools/deployment/presto-clp/scripts/init.pyin the_resolve_s3_endpoint_urlfunctionSuggested warning message
References