Service-linked role of API Gateway

Updated at:
Copy as MD

The AliyunServiceRoleForApiGateway service-linked role grants API Gateway the permissions to access Function Compute. This topic describes the use scenarios of this role and how to delete it.

Background information

AliyunServiceRoleForApiGateway is a RAM role that grants API Gateway the permissions to access Function Compute. This role is required if you configure an API whose backend service type is Function Compute. For more information, see the topics about service-linked roles.

Use scenarios

API Gateway assumes this service-linked role to access Function Compute.

Introduction to AliyunServiceRoleForApiGateway

Role name: AliyunServiceRoleForApiGateway Role policy: AliyunServiceRolePolicyForApiGateway Policy description:

{
  "Version": "1",
  "Statement": [
    {
      "Action": [
        "fc:InvokeFunction"
      ],
      "Resource": "*",
      "Effect": "Allow"
    }
  ]
}

Delete the service-linked role

Before you delete AliyunServiceRoleForApiGateway, you must delete APIs whose backend service type is Function Compute.