Cloud Computing 3 min read

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.

Woodpecker Software Testing
Woodpecker Software Testing
Woodpecker Software Testing
Deploy Your Program to Alibaba Function Compute (FC) in Minutes

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 needed

Install the Python dependencies locally (optional, for verification): pip3 install -r requirements.txt Configure the network settings as shown in the screenshot below.

Network configuration screenshot
Network configuration screenshot

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.

Trigger configuration screenshot
Trigger configuration screenshot

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.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

ServerlessPythondeploymentAlibaba CloudFunction ComputeScheduled Trigger
Woodpecker Software Testing
Written by

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".

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.