You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2018/08/30 15:29:05 UTC

[GitHub] XD-DENG commented on issue #3823: [AIRFLOW-2985] An operator for S3 object copying

XD-DENG commented on issue #3823: [AIRFLOW-2985] An operator for S3 object copying
URL: https://github.com/apache/incubator-airflow/pull/3823#issuecomment-417361467
 
 
   Hi @feng-tao , my day-to-day use cases are normally copying within one bucket. But I believe copying across buckets is allowed. I'm trying to refer to `boto3` documentation
   1. https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3.html#S3.Client.copy_object
   2. https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3.html#S3.Client.copy.
   
   One sample provided in the documentation is 
   ```
   import boto3
   s3 = boto3.resource('s3')
   copy_source = {
       'Bucket': 'mybucket',
       'Key': 'mykey'
   }
   s3.meta.client.copy(copy_source, 'otherbucket', 'otherkey')
   ```
   which is an across-buckets case.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services