Updated on 2023-11-15 GMT+08:00

Preparation

Create an OBS bucket to store uploaded images.

Then create an agency to delegate FunctionGraph to access OBS resources.

Creating an OBS bucket

The bucket and function must be in the same region.

Procedure

  1. In the left navigation pane of the management console, choose Storage > Object Storage Service to go to the OBS console, and click Create Bucket.

    On the Create Bucket page, set the bucket information.

    • For Region, select a region.
    • For Bucket Name, enter your-bucket-input.
    • For Data Redundancy Policy, select Single-AZ storage.
    • For Default Storage Class, select Standard.
    • For Bucket Policies, select Private.
    • For Default Encryption, select Disable.
    • For Direct Reading, select Disable.

    Retain the default values for other parameters and click Create Now.

    View your-bucket-input in the bucket list.

Creating an Agency

  1. In the left navigation pane of the management console, choose Management & Governance > Identity and Access Management to go to the IAM console. Then choose Agencies in the navigation pane.

    On the Agencies page, click Create Agency.

    Set the agency information.

    • For Agency Name, enter serverless_trust.
    • For Agency Type, select Cloud service.
    • For Cloud Service, select FunctionGraph.
    • For Validity Period, select Unlimited.
    • For Description, enter a description.

      Click Next. On the Select Policy/Role page, select Tenant Administrator and click Next.

      Users with the Tenant Administrator permission can perform any operations on all cloud resources of the enterprise.

    Click OK.