airflow.providers.amazon.aws.bundles.s3¶
Classes¶
S3 Dag bundle - exposes a directory in S3 as a Dag bundle. |
|
S3 Dag bundle staged from a single |
Module Contents¶
- class airflow.providers.amazon.aws.bundles.s3.S3DagBundle(*, aws_conn_id=AwsBaseHook.default_conn_name, bucket_name, prefix='', **kwargs)[source]¶
Bases:
_S3DagBundleBaseS3 Dag bundle - exposes a directory in S3 as a Dag bundle.
This allows Airflow to load Dags directly from an S3 bucket.
- Parameters:
aws_conn_id (str) – Airflow connection ID for AWS. Defaults to AwsBaseHook.default_conn_name.
bucket_name (str) – The name of the S3 bucket containing the Dag files.
prefix (str) – Optional subdirectory within the S3 bucket where the Dags are stored. A trailing slash is optional. If None, Dags are assumed to be at the root of the bucket (Optional).
- class airflow.providers.amazon.aws.bundles.s3.S3ArchiveDagBundle(*, aws_conn_id=AwsBaseHook.default_conn_name, bucket_name, archive_key, **kwargs)[source]¶
Bases:
_S3DagBundleBaseS3 Dag bundle staged from a single
.tar.gzobject.The archive is the only source of the Dags. Members are extracted relative to the bundle root, for example
tar -C <dags_dir> -czf dags.tar.gz .. Requires Python 3.11.4 or later.- Parameters: