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:
Thumbnail
.Python 2.7
.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 appid
, secret_id
, secret_key
, region
, and resized_bucket
with your APPID
, SecretId
, SecretKey
, region
, and resized_bucket
and click Save to complete the creation.
- The
APPID
can be obtained on the Account Info page in the console.- The
SecretId
andSecretKey
can be obtained on the API Key Management page in the console.
mybucket
created 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.
Was this page helpful?