Last active
May 30, 2021 01:53
-
-
Save arnaud9/841da3038b75a15d747351acad5471cf to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import airflow.hooks.S3_hook | |
def upload_file_to_S3_with_hook(filename, key, bucket_name): | |
hook = airflow.hooks.S3_hook.S3Hook('my_S3_conn') | |
hook.load_file(filename, key, bucket_name) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Do I have to place that code in the dag file?