Help Center/ Content Delivery Network/ Best Practices/ Accelerating Access to OBS Bucket Files/ Configuring a Policy for a Custom OBS Private Bucket
Updated on 2025-05-19 GMT+08:00

Configuring a Policy for a Custom OBS Private Bucket

If you use a custom OBS private bucket as the CDN origin server, that is, use an OBS private bucket under another account as the origin server, you need to configure a policy for the private bucket on OBS Console.

Procedure

  1. Log in to Huawei Cloud Console. Choose Service List > Storage > Object Storage Service to access OBS Console.
  2. In the navigation pane, choose Object Storage.
  3. In the bucket list, click the name of the bucket to be operated.

    The Objects page of the bucket is displayed.

  4. In the navigation pane, choose Permissions > Bucket Policies.
  5. On the Bucket Policies page, click Create and select Visual Editor.
    • Policy Name: Enter a name.
    • Effect: Select Allow.
    • Principal:
      • Other accounts: Enter an account ID in the format of domainId/userId. Example: 0a0b0afb4************019806272e0/*
      • Delegated accounts: Enter an account ID in the format of domainId/*. Example: 0a0b0afb4************019806272e0/*
    • Resources: Select Entire bucket (including the objects in it) or Current bucket.
    • Actions: Select Customize and select the ListBucket action under Operations on Buckets.
    Figure 1 Creating a bucket policy
  6. Click Create.