Note
1. The source and target buckets must be in the same region as the function. In this tutorial, the Guangzhou region is used.
2. Two COS buckets must be used. If you use the same bucket as the source and target buckets, each thumbnail uploaded to the source bucket will trigger the function again and thus generate unnecessary recursion.
2. Click Create Bucket on the Bucket List tab to create a source COS bucket. For more information, see Console. Set the the following parameters:
Name: Set the value to mybucket1
.
Region: Select Guangzhou
.
Access permissions: Select Private Read/Write
.
3. Perform the same steps to create the target bucket mybucket-resized1
.
Was this page helpful?