AzureFileShareToGCSOperator

Google

Synchronizes a Azure FileShare directory content (excluding subdirectories), possibly filtered by a prefix, with a Google Cloud Storage destination path.

View Source

Last Updated: May. 7, 2021

Access Instructions

Install the Google provider package into your Airflow environment.

Import the module into your DAG file and instantiate it with your desired params.

Parameters

share_namestrThe Azure FileShare share where to find the objects. (templated)
directory_namestr(Optional) Path to Azure FileShare directory which content is to be transferred. Defaults to root directory (templated)
prefixstrPrefix string which filters objects whose name begin with such prefix. (templated)
wasb_conn_idstrThe source WASB connection
gcp_conn_idstr(Optional) The connection ID used to connect to Google Cloud.
dest_gcs_conn_idstr(Deprecated) The connection ID used to connect to Google Cloud. This parameter has been deprecated. You should pass the gcp_conn_id parameter instead.
dest_gcsstrThe destination Google Cloud Storage bucket and prefix where you want to store the files. (templated)
delegate_tostrGoogle account to impersonate using domain-wide delegation of authority, if any. For this to work, the service account making the request must have domain-wide delegation enabled.
replaceboolWhether you want to replace existing destination files or not.
gzipboolOption to compress file for upload
google_impersonation_chainOptional[Union[str, Sequence[str]]]Optional Google service account to impersonate using short-term credentials, or chained list of accounts required to get the access_token of the last account in the list, which will be impersonated in the request. If set as a string, the account must grant the originating account the Service Account Token Creator IAM role. If set as a sequence, the identities from the list must grant Service Account Token Creator IAM role to the directly preceding identity, with first account from the list granting this role to the originating account (templated).

Documentation

Synchronizes a Azure FileShare directory content (excluding subdirectories), possibly filtered by a prefix, with a Google Cloud Storage destination path.

Note that share_name, directory_name, prefix, delimiter and dest_gcs are templated, so you can use variables in them if you wish.

Was this page helpful?