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

Creating a Bucket Policy with a Template

OBS Console provides bucket policy templates for six typical scenarios. You can use these templates to quickly configure bucket policies.

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 Policy.
  4. Click Create Bucket Policy.
  5. In the template list, select a template and click Use Policy Template on the right.

    For details about each template, see Bucket Policy.

    Figure 1 Creating a bucket policy using a template

  6. Input required information.

    Some bucket policy templates require a configuration of principals or resources. You can also change the settings of a pre-defined template, including the policy name, principal, resources, actions, and conditions. For details, see Bucket Policy Parameters.

    Figure 2 Configuring a bucket policy

  7. Click Next to confirm the policy configuration.

    Figure 3 Confirming a bucket policy configuration

  8. Click Create in the lower right corner.