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.

See also

For more information on how to use this operator, take a look at the guide: Amazon S3 To FTP transfer operator

Parameters
  • s3_bucket – The targeted s3 bucket. This is the S3 bucket from where the file is downloaded.

  • s3_key – The targeted s3 key. This is the specified file path for downloading the file from S3.

  • ftp_path – The ftp remote path. This is the specified file path for uploading file to the FTP server.

  • aws_conn_id – reference to a specific AWS connection

  • ftp_conn_id – The ftp connection id. The name or identifier for establishing a connection to the FTP server.

template_fields: collections.abc.Sequence[str] = ('s3_bucket', 's3_key', 'ftp_path')[source]
execute(context)[source]

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?