Deploy Your Program to Alibaba Function Compute (FC) in Minutes
This guide walks through the step‑by‑step process of deploying a daily‑triggered Python program to Alibaba Function Compute, covering account login, function creation, code packaging, runtime configuration, network settings, trigger setup, and verification of execution logs.
Deploying a Scheduled Task to Alibaba Function Compute (FC)
Open the Alibaba Cloud homepage at https://www.aliyun.com/ and log in to your account.
Search for “Function Compute” (FC) and open the FC console.
Apply for the free‑tier usage.
Enter the FC console and navigate to Function Management → Function List in the left‑hand menu.
Create a new function of type Web Function .
Provide a function name; keep all other options at their default values.
Select the runtime environment that matches your code language; the example uses Python .
Upload the code as a zip archive. The archive should contain the source directory and a requirements.txt file.
Set the start command. For the example the command is:
python3 /code/第9.步目录名字/main.py # adjust the path and filename as neededInstall the Python dependencies locally (optional, for verification): pip3 install -r requirements.txt Configure the network settings as shown in the screenshot below.
Add the Elastic Public IP obtained from the WeChat public‑account developer console (WeChat → My Business → Official Account → Development Key → IP Whitelist) to the FC network whitelist.
Configure a trigger to run the function on a schedule. The example sets a daily timer at 06:00.
After the trigger fires, view the execution logs in the console to verify that the function ran correctly.
In the code editor, click the “Test Function” button to run a manual test; the result appears at the top of the IDE.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Woodpecker Software Testing
The Woodpecker Software Testing public account shares software testing knowledge, connects testing enthusiasts, founded by Gu Xiang, website: www.3testing.com. Author of five books, including "Mastering JMeter Through Case Studies".
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
