This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Accessing a connection named "mys3bucket" from either a secrets backend or the Airflow backend: | |
# If using a secrets backend with connections prefix configured as: | |
# AIRFLOW__SECRETS__BACKEND_KWARGS={"connections_prefix":"airflow/connections"...}, this connection would be saved in | |
# param store as /airflow/connections/mys3bucket: | |
get_tagging = S3GetBucketTaggingOperator( | |
task_id='s3_get_bucket_tagging', | |
bucket_name='adam-cs-astrocloud', | |
aws_conn_id='mys3bucket' | |
) |