airflow.providers.amazon.aws.transfers.s3_to_ftp

Module Contents

class airflow.providers.amazon.aws.transfers.s3_to_ftp.S3ToFTPOperator(*, s3_bucket, s3_key, ftp_path, aws_conn_id='aws_default', ftp_conn_id='ftp_default', **kwargs)[source]

Bases: airflow.models.BaseOperator

This operator enables the transferring of files from S3 to a FTP server.

Parameters
  • s3_bucket (str) -- The targeted s3 bucket. This is the S3 bucket from where the file is downloaded.

  • s3_key (str) -- The targeted s3 key. This is the specified file path for downloading the file from S3.

  • ftp_path (str) -- The ftp remote path. This is the specified file path for uploading file to the FTP server.

  • aws_conn_id (str) -- reference to a specific AWS connection

  • ftp_conn_id (str) -- The ftp connection id. The name or identifier for establishing a connection to the FTP server.

template_fields = ['s3_bucket', 's3_key', 'ftp_path'][source]
execute(self, context)[source]

Was this entry helpful?