Skip to content

Alibaba Cloud OSS Configuration Guide

Service Overview

Alibaba Cloud Object Storage Service (OSS) is a massive, secure, low-cost, and highly reliable cloud storage service provided by Alibaba Cloud. OSS is partially compatible with the S3 API.

Official Website: https://www.aliyun.com/product/oss

Official Documentation: https://help.aliyun.com/product/31815.html

Configuration Parameters

Endpoint

OSS endpoint format:

Public Network Access:

https://oss-<region-id>.aliyuncs.com

Internal Network Access (ECS, etc.):

https://oss-<region-id>-internal.aliyuncs.com

Accelerate Endpoint (requires Transfer Acceleration):

https://oss-<region-id>-accelerate.aliyuncs.com

Bucket Domain (Recommended):

https://<bucket-name>.oss-<region-id>.aliyuncs.com

Region

Common Regions List:

Region IDRegion NameLocation
oss-cn-hangzhouChina East 1Hangzhou
oss-cn-shanghaiChina East 2Shanghai
oss-cn-nanjingChina East 5Nanjing Local Region
oss-cn-beijingChina North 2Beijing
oss-cn-zhangjiakouChina North 3Zhangjiakou
oss-cn-shenzhenChina South 1Shenzhen
oss-cn-guangzhouChina South 2Guangzhou
oss-cn-chengduChina Southwest 1Chengdu
oss-cn-hongkongHong KongHong Kong
oss-ap-southeast-1Asia Pacific Southeast 1Singapore
oss-ap-southeast-2Asia Pacific Southeast 2Sydney
oss-ap-southeast-3Asia Pacific Southeast 3Kuala Lumpur
oss-ap-northeast-1Asia Pacific Northeast 1Tokyo
oss-us-west-1US West 1Silicon Valley
oss-us-east-1US East 1Virginia
oss-eu-central-1Europe Central 1Frankfurt

View complete regions list

⚠️ Note: When using S3-compatible API with S3 File Viewer, region format should be without the oss- prefix, for example:

  • China East 1: cn-hangzhou
  • China North 2: cn-beijing
  • Singapore: ap-southeast-1

Obtaining Access Keys

  1. Log into Alibaba Cloud Console

  2. Create RAM User

    • Click "Identities" → "Users" → "Create User"
    • Enter login name (e.g., oss-file-viewer)
    • Check "Programmatic access" (OpenAPI access key)
  3. Save AccessKey

    • AccessKey ID: e.g., LTAI5tFxxxxxxxxxxxxxx
    • AccessKey Secret: Only shown once, must save immediately
  4. Add Permissions

    • In user list, find user and click "Add Permissions"
    • Select AliyunOSSFullAccess or AliyunOSSReadOnlyAccess

Configuration Examples

Public Network Access Configuration

Connection Name: Alibaba Cloud OSS Hangzhou
Endpoint: https://oss-cn-hangzhou.aliyuncs.com
Access Key: LTAI5tFxxxxxxxxxxxxxx
Secret Key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Region: cn-hangzhou

Internal Network Access Configuration

Connection Name: Alibaba Cloud OSS Internal
Endpoint: https://oss-cn-beijing-internal.aliyuncs.com
Access Key: LTAI5tFxxxxxxxxxxxxxx
Secret Key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Region: cn-beijing