python clinet to support non 80 ports for s3 (#7812)

This commit is contained in:
Alexander Petric
2026-02-05 10:07:52 -05:00
committed by GitHub
parent 0f1645df72
commit 6730e6a4e5
+7 -3
View File
@@ -1088,10 +1088,14 @@ class Windmill:
def __boto3_connection_settings(self, s3_resource) -> Boto3ConnectionSettings:
endpoint_url_prefix = "https://" if s3_resource["useSSL"] else "http://"
endpoint = s3_resource["endPoint"]
port = s3_resource.get("port")
if port:
endpoint_url = "{}{}:{}".format(endpoint_url_prefix, endpoint, port)
else:
endpoint_url = "{}{}".format(endpoint_url_prefix, endpoint)
settings = {
"endpoint_url": "{}{}".format(
endpoint_url_prefix, s3_resource["endPoint"]
),
"endpoint_url": endpoint_url,
"region_name": s3_resource["region"],
"use_ssl": s3_resource["useSSL"],
"aws_access_key_id": s3_resource["accessKey"],