brettpalmberg opened a new issue, #57891: URL: https://github.com/apache/airflow/issues/57891
### Description Support new parameter `sftp_remote_host` in [S3ToSFTPOperator](https://github.com/apache/airflow/blob/main/providers/amazon/src/airflow/providers/amazon/aws/transfers/s3_to_sftp.py) and [SFTPToS3Operator](https://github.com/apache/airflow/blob/main/providers/amazon/src/airflow/providers/amazon/aws/transfers/sftp_to_s3.py). This parameter, if provided, would override remote_host stored in `sftp_conn_id`. This would work the same as the `remote_host` parameter in [SFTPOperator](https://github.com/apache/airflow/blob/main/providers/sftp/src/airflow/providers/sftp/operators/sftp.py) ### Use case/motivation This would allow storing credentials/SSH Key in a single connection. If the connection is used with multiple target hosts, remote_host could be overridden in `S3ToSFTPOerator()`. Example: ``` for h in ['host1.mydomain.com', 'host2.mydomain.com', 'host3.mydomain.com']: create_s3_to_sftp_job = S3ToSFTPOperator( task_id="create_s3_to_sftp_job", sftp_conn_id='sftp_conn', sftp_remote_host=h, sftp_path="/sftp_data", s3_bucket='my_s3_bucket', s3_key='/myfiles/file.txt', ) ``` ### Related issues _No response_ ### Are you willing to submit a PR? - [x] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) -- 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]
