This topic describes whether you can use an Object Storage Service (OSS) bucket that belongs to another Alibaba Cloud account as the origin server when you add a domain name to Alibaba Cloud CDN.

Challenge

I want to use Alibaba Cloud CDN to accelerate the retrieval of resources from an OSS bucket. Can I use an OSS bucket that belongs to another Alibaba Cloud account as the origin server when I add a domain name to Alibaba Cloud CDN?

Solution

When you add a domain name to Alibaba Cloud CDN, you can use an OSS bucket that belongs to another Alibaba Cloud account as the origin server. Set Origin Info to OSS Domain, and select Custom OSS Origin from the Domain Name drop-down list. Then, enter the domain name of the OSS bucket that you want to use, as shown in the following figure. OSS Domain
  • If the OSS bucket supports public read access, you can specify the bucket as the origin server in the Alibaba Cloud CDN console.
  • If the OSS bucket is a private bucket, you cannot complete the settings in the Alibaba Cloud CDN console. When an OSS bucket is set to private, Alibaba Cloud CDN must acquire permissions on the bucket before Alibaba Cloud CDN can access the bucket. The Alibaba Cloud CDN console allows you to grant Alibaba Cloud CDN permissions only on private OSS buckets that belong to the same Alibaba Cloud account. You cannot grant Alibaba Cloud CDN permissions on private OSS buckets that belong to another Alibaba Cloud account. If you have such requirements, submit a ticket..