Updated on 2024-04-01 GMT+08:00

Replicating Bucket Policies

Scenarios

OBS allows you to replicate the existing bucket policies to a new bucket. When replicating policies, OBS automatically replaces the bucket name in the source bucket policies with the destination bucket name, for the policies to apply to the destination bucket.

Constraints

  • The policies replicated from a source bucket will not overwrite existing policies in the destination bucket.
  • The source policies with the same name as those in the destination bucket will not be replicated.
  • Both source and destination buckets must be of the 3.0 version.

Procedure

  1. In the navigation pane of OBS Console, choose Object Storage.
  2. In the bucket list, click the bucket you want to operate to go to the Objects page.
  3. In the navigation pane, choose Permissions > Bucket Policies.
  4. Click Replicate.
  5. Select a replication source, which is the bucket whose policies you want to replicate.

    After you select a replication source, all bucket policies with different name from those in the destination bucket are displayed. You can remove any that are not required.

    Figure 1 Replicating bucket policies

  6. Click OK to replicate the bucket policies to the destination bucket.