airflow.providers.amazon.aws.transfers.s3_to_ftp

Module Contents

Classes

S3ToFTPOperator

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

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 :Sequence[str] = ['s3_bucket', 's3_key', 'ftp_path'][source]
execute(self, context: airflow.utils.context.Context)[source]

This is the main method to derive when creating an operator. Context is the same dictionary used as when rendering jinja templates.

Refer to get_template_context for more context.

Was this entry helpful?