Kengo Seki created AIRFLOW-2293: ----------------------------------- Summary: Fix S3FileTransformOperator to work with boto3 Key: AIRFLOW-2293 URL: https://issues.apache.org/jira/browse/AIRFLOW-2293 Project: Apache Airflow Issue Type: Bug Components: aws, operators Reporter: Kengo Seki
Since [boto.s3.key.Key#get_contents_to_file()|http://boto.cloudhackers.com/en/latest/ref/s3.html#boto.s3.key.Key.get_contents_to_file] is no longer supported by boto3, S3FileTransformOperator fails with the following error: {code} /home/sekikn/dev/incubator-airflow/airflow/operators/s3_file_transform_operator.py in execute(self, context) 84 self.source_s3_key, f_source.name 85 ) ---> 86 source_s3_key_object.get_contents_to_file(f_source) 87 f_source.flush() 88 source_s3.connection.close() AttributeError: 's3.Object' object has no attribute 'get_contents_to_file' {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)