s3.copy_object not trigger Event types: s3:ObjectCreated:Put in destination

0

Im trying to copy json file using s3.copy_object but its not trigger s3:ObjectCreated:Put event type even the json file copy succefully to destination. Below is the python command ust to s3 copy im using.

s3.copy_object(Bucket=destination_bucket_name, CopySource={'Bucket': source_bucket_name, 'Key': source_file_key}, Key=destination_file_key)

Thanks.

NUWAN
asked 9 months ago377 views
1 Answer
1

Hello.
For copy_object, I think "s3:ObjectCreated:Copy" needs to be enabled. https://docs.aws.amazon.com/AmazonS3/latest/userguide/notification-how-to-event-types-and-destinations.html

profile picture
EXPERT
answered 9 months ago
  • Thanks, but without enable "s3:ObjectCreated:Copy" can i use s3.meta.client.upload, but this also get an error. s3.meta.client.upload_file(source_bucket_name, file_key, destination_bucket_name, destination_file_key)

  • What is the size of the file? If the file is large, it may be a multipart upload. In this case, "s3:ObjectCreated:CompleteMultipartUpload" must be enabled. Also, what kind of error are you talking about?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions