-
Notifications
You must be signed in to change notification settings - Fork 16.7k
Closed
Labels
good first issuekind:featureFeature RequestsFeature Requestsprovider:amazonAWS/Amazon - related issuesAWS/Amazon - related issues
Description
Description
Support new parameter sftp_remote_host in S3ToSFTPOperator and SFTPToS3Operator.
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
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?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issuekind:featureFeature RequestsFeature Requestsprovider:amazonAWS/Amazon - related issuesAWS/Amazon - related issues