/ in a key becomes a folder.
Setup
Create an AccessKey pair for a RAM user in the RAM console, then export it.Create an OSS AccessKey pair
Create an OSS AccessKey pair
- Open Identities > Users and create or pick a RAM user. Grant it
AliyunOSSReadOnlyAccess, orAliyunOSSFullAccessfor a write mount. - Click the user’s name and, in the AccessKey section of its credential tab, click Create AccessKey.
- Copy the AccessKey ID and AccessKey Secret. The secret is shown only once.
- Note the bucket’s region, for example
cn-hangzhou.
Connect
- YAML
- Python
- TypeScript
workspace.yaml
Layout
- The endpoint comes from
region:s3.oss-<region>.aliyuncs.com, the S3-compatible host, not the nativeoss-<region>.aliyuncs.com.endpoint_url(endpointin TypeScript) overrides it. key_prefix(keyPrefixin TypeScript) mounts one folder of the bucket as the root.grep -r,findanddustop after 1000 files; a glob matching more,tar -c,cp -randrm -rare refused.
Sample runs
write mount, cp, mv, rm and > change objects in the bucket. For
write: conditional, see S3-compatible VFSes.
SDK guides
Python
Every config field, the VFS.md and write support.
TypeScript
Every config field, the VFS.md and write support.