In this tutorial, suppose that:
The implementation process of this function is as follows:
cos:ObjectCreated:\*event to the function.
wordcountimplemented in the code to count the words, and saves the word count in the target bucket.
- Three COS buckets are used in this example. If you use the same bucket as both source and target buckets, each file uploaded to the source bucket may trigger another object creation event that will invoke the function again and thus cause an infinite loop.
- Make sure that the function and the COS buckets are in the same region.
Note: after going through this tutorial, your account will have the following resources:
srcmrfor triggering, the Reducer function will be bound to
middlestagebucketfor triggering, and
destmrwill be used to receive the final statistics.
Contact our sales team or business advisors to help your business.
Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.
Was this page helpful?