Cloud infrastructure is no longer for just the world’s biggest companies—today, startups and established organizations alike can deploy scalable websites and services in minutes. In this post, we’ll show you how to build a modern web stack on Alibaba Cloud using two foundational services: Elastic Compute Service (ECS) for flexible servers and Object Storage Service (OSS) for reliable, fast file storage and delivery.
Think of Elastic Compute Service (ECS) as virtual machines on-demand—faster, cheaper, and way easier to scale up or down than physical hardware. Whether you’re launching a simple landing page, a busy e-commerce backend, or a development staging area, ECS lets you:
● Instantly create or delete servers as needed
● Choose CPU/memory mixes for your workload
● Only pay for what you use (hourly/monthly)
● Deploying web servers (Node.js, Python, PHP, etc.)
● Running APIs or backend cron jobs
● Hosting dev/test environments
Begin with a size large enough for your current needs—don’t over-provision on day one, but make scaling part of your strategy.
Alibaba Cloud offers many regions. Choose the one closest to your audience—for example, Singapore for Southeast Asia, Frankfurt for Europe. Pick an OS image (Ubuntu, CentOS, Windows Server) matching your stack needs.
● Go to the ECS section in your Alibaba Cloud console.
● Click Create Instance, pick your region, and select your desired image.
● Configure your instance type (CPU/memory).
● Set VSwitch and security group rules (open HTTP/HTTPS to the world, SSH only to your IP).
Moving beyond point-and-click, most modern teams automate cloud setup.
Here’s a minimal Python example:
from aliyunsdkecs.request.v20140526 import CreateInstanceRequest
req = CreateInstanceRequest.CreateInstanceRequest()
req.set_InstanceType("ecs.t5-lc1m1.small")
# Add your parameters: req.set_ImageId(), req.set_SecurityGroupId(), etc.
client.do_action_with_exception(req)
Automation means you can recreate infrastructure or scale up instantly.
Once the instance is running:
● Copy its public IP
● SSH in: ssh root@<ecs-public-ip>
Update the OS and install what you need—commonly, Nginx for web serving and Node.js or Python for your backend:
# Ubuntu example
apt update && apt install nginx nodejs npm -y
systemctl enable nginx
Object Storage Service (OSS) is your "endless hard drive in the cloud." It takes care of durability, redundancy, and global access—ideal for:
● Serving website images, videos, and downloads
● Hosting static front-end single-page applications (React/Vue build folders)
● Cold storage and backup
● OSS is safer (no worrying about failing disks)
● Infinite scaling—never run out of space
● Access from anywhere; simple public/private controls
1. Open the OSS console and create a bucket (choose region, storage class, and policy: private or public).
2. Set lifecycle rules if you want old files auto-archived or deleted.
Example: Upload file from Python
import oss2
auth = oss2.Auth('ACCESS_KEY_ID', 'ACCESS_KEY_SECRET')
bucket = oss2.Bucket(auth, 'https://oss-cn-shanghai.aliyuncs.com', 'mybucket')
bucket.put_object('logo.png', open('logo.png', 'rb'))
3. To deliver files globally (fast!), enable Alibaba Cloud CDN on your bucket with a few clicks.
● Deploy your backend (Node.js/Flask) on ECS.
● For media uploads (profile photos, docs), store in OSS, returning the file’s public URL to the frontend.
● Nginx can reverse proxy API traffic to your Node/Python app and static assets to OSS/CDN, boosting speed.
location /static/ {
proxy_pass https://mybucket.oss-cn-shanghai.aliyuncs.com/;
proxy_set_header Host mybucket.oss-cn-shanghai.aliyuncs.com;
}
● Security: Always use security groups to lock down access—SSH only for admins, HTTP/HTTPS for all. Avoid using root accounts—create limited-permission RAM accounts!
● Backups: ECS disks and OSS buckets can have scheduled backups—set it, then forget it.
● Monitoring: Use built-in CloudMonitor for CPU/traffic alerts. Set alarms for runaway costs or unusual access.
● Scaling: Use ECS auto-scaling policies or manual "clone" of recipes/AMIs for sudden traffic bursts.

Take “StartupX,” a fictional SaaS company:
● Prototype stage: One ECS instance with Node.js+MongoDB, storing user uploads in OSS.
● Growth: As traffic spiked, spun up a load balancer and two ECS instances, same backend code. OSS/static via CDN—no changes needed for scaling downloads worldwide.
● Enterprise: Automated deployments using Alibaba Cloud SDKs; created staging/production ECS/OSS environments. Cost savings by auto-shutting down dev ECS at night, lifecycle rules to archive old logs in OSS.
Alibaba Cloud ECS and OSS let anyone build and manage web services that are scalable, reliable, and global. Mastering these foundations unlocks the rest of the Alibaba platform, including serverless, database, and analytics services.
● Play with advanced OSS features (static website hosting, signed URLs)
● Automate with Terraform or Alibaba Cloud CLI
● Try linking OSS with Alibaba CDN for even faster delivery
Disclaimer: The views expressed herein are for reference only and don't necessarily represent the official views of Alibaba Cloud.
Complete Beginner's Guide: Building Your First AI Agent on Alibaba Cloud
Building Scalable Database Solutions with Alibaba Cloud RDS
12 posts | 0 followers
FollowNeel_Shah - August 13, 2025
Alibaba Clouder - October 1, 2020
Alibaba Clouder - August 17, 2020
Alibaba Cloud Community - August 28, 2025
Alibaba Clouder - January 18, 2021
H Ohara - May 8, 2024
12 posts | 0 followers
Follow
ECS(Elastic Compute Service)
Elastic and secure virtual cloud servers to cater all your cloud hosting needs.
Learn More
Function Compute
Alibaba Cloud Function Compute is a fully-managed event-driven compute service. It allows you to focus on writing and uploading code without the need to manage infrastructure such as servers.
Learn More
Elastic High Performance Computing Solution
High Performance Computing (HPC) and AI technology helps scientific research institutions to perform viral gene sequencing, conduct new drug research and development, and shorten the research and development cycle.
Learn More
CloudBox
Fully managed, locally deployed Alibaba Cloud infrastructure and services with consistent user experience and management APIs with Alibaba Cloud public cloud.
Learn MoreMore Posts by Farah Abdou