Skip to main content

Credentials

1. Create an AccessKey pair

  1. Sign in to the Alibaba Cloud console
  2. Go to AccessKey Management (RAM user recommended) -> Create AccessKey
  3. Copy the AccessKey ID and AccessKey Secret
  4. Note your bucket’s region (e.g. cn-hangzhou) and bucket name
The endpoint is derived from region as s3.oss-<region>.aliyuncs.com. Note the s3. prefix: this is the S3-compatible host, distinct from the native oss-<region>.aliyuncs.com.

2. Set environment variables

# .env.development
OSS_BUCKET=my-bucket
OSS_REGION=cn-hangzhou
OSS_ACCESS_KEY_ID=...
OSS_ACCESS_KEY_SECRET=...
For Python configuration, see the Alibaba OSS resource docs.