Skip to content

Commit 2ef586e

Browse files
authored
Add debug logging for endpoint_url in AWS Connection (#52856)
1 parent e6ee543 commit 2ef586e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

providers/amazon/src/airflow/providers/amazon/aws/utils/connection_wrapper.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,12 @@ def __post_init__(self, conn: Connection | AwsConnectionWrapper | _ConnectionMet
248248
config_kwargs["signature_version"] = UNSIGNED
249249
self.botocore_config = Config(**config_kwargs)
250250

251+
if "endpoint_url" not in extra:
252+
self.log.debug(
253+
"Missing endpoint_url in extra config of AWS Connection with id %s. Using default AWS service endpoint",
254+
conn.conn_id,
255+
)
256+
251257
self.endpoint_url = extra.get("endpoint_url")
252258

253259
# Retrieve Assume Role Configuration

0 commit comments

Comments
 (0)