This topic describes how to grant a Function Compute instance permissions to access other Alibaba Cloud services in the Function Compute console.

Prerequisites

Create a service

Background information

To access other Alibaba Cloud services, Function Compute must be granted relevant permissions. Such a permission is granted to a corresponding service. After a permission is granted to a service, all functions of the service have the permission.

Procedure

  1. Log on to the Function Compute console.
  2. In the top navigation bar, select your region.
  3. In the left-side navigation pane, click Service/Function.
  4. In the service list, click the name of the target service.
  5. Choose Service Configurations > Update.
    modify
  6. In the Role Config section, configure parameters, and then click Submit.
    • You have not created a role
      1. Create a role.create-role
        Parameter Description
        Role Operation Select Create new role from the drop-down list.
        System Policies Select one or more policies from the drop-down list.
      2. Click Authorize.

        The Role Templates page appears.

      3. Set Role Name and Policy Name, and then click Confirm Authorization Policy.role-information
    • You have created a role
      1. Authorize the role.exist-role
        Parameter Description
        Role Operation Select Select an existing role from the drop-down list.
        Existing Role Select an existing role from the drop-down list.
        System Policies Select one or more policies from the drop-down list.
      2. Click Authorize.
      3. Set Policy Name, and then click Confirm Authorization Policy.policy-information