vincbeck commented on code in PR #32386:
URL: https://github.com/apache/airflow/pull/32386#discussion_r1254543116
##########
airflow/providers/amazon/aws/operators/rds.py:
##########
@@ -47,14 +47,14 @@ def __init__(self, *args, aws_conn_id: str = "aws_conn_id",
hook_params: dict |
if hook_params is not None:
warnings.warn(
"The parameter hook_params is deprecated and will be removed. "
+ "Note that it is also incompatible with deferrable mode. "
"If you were using it, please get in touch either on airflow
slack, "
"or by opening a github issue on the project. "
"You can mention https://github.com/apache/airflow/pull/32352",
AirflowProviderDeprecationWarning,
stacklevel=3, # 2 is in the operator's init, 3 is in the user
code creating the operator
)
- self.hook_params = hook_params or {}
Review Comment:
This is something we might want to think about actually. In which case a
user might want to specify another region? Regions are set as part of
connections. That means, a user set `regionA` in its connection, hence
targeting this regions for all AWS calls but would want to target another
region for a specific operator? I think that can be done by using another
connection then (and then using the param `aws_conn_id`). WDYT?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]