Skip to content

Instantly share code, notes, and snippets.

@arnaud9
Last active January 25, 2019 07:49
Show Gist options
  • Save arnaud9/ea8f3594567961e2a4aa5c459462f551 to your computer and use it in GitHub Desktop.
Save arnaud9/ea8f3594567961e2a4aa5c459462f551 to your computer and use it in GitHub Desktop.
upload_to_S3_task = PythonOperator(
task_id='upload_to_S3',
python_callable=upload_file_to_S3,
op_kwargs={
'filename': 'path/to/my_file.csv',
'key': 'my_S3_file.csv',
'bucket_name': 'my-S3-bucket',
},
dag=my_dag)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment