Log in to the SCF Console and select Functions on the left sidebar.
Select the Guangzhou region at the top of the "Functions" page and click Create.
Enter the following parameter information on the "Create Function" page and click Next as shown below:
Keep the default configuration and click Complete to complete the function creation.
When using this template function, you need to modify the configuration information in the function code as prompted.
In the code box on the Function Code tab, replace
resized_bucket with your
resized_bucket and click Save to complete the creation.
mybucketcreated in Step 1.
mybucket, click Upload File, and select a random .jpg or .png image for upload.
mybucket-resized, check whether there is a file with the same name generated, download it, and compare the size of the two images.