mPaaS service-linked role

Updated at:

This topic describes the mPaaS Message Push service-linked role (AliyunServiceRoleForMpaasPush), the scenarios in which it is used, and how to create and delete it.

A service-linked role (SLR) is a role that is associated with an Alibaba Cloud service. In some scenarios, an Alibaba Cloud service needs to access other Alibaba Cloud services to perform specific functions. For example, configuring message push requires access to Short Message Service (SMS) resources. Alibaba Cloud provides SLRs to meet these needs. Using an SLR, you can grant the necessary permissions to an Alibaba Cloud service to ensure that it functions correctly and to reduce the risk of misoperation. For more information about service-linked roles, see Service-linked roles.

Background information

The mPaaS Message Push service-linked role (AliyunServiceRoleForMpaasPush) is a Resource Access Management (RAM) role. mPaaS Message Push uses this role to access other Alibaba Cloud services to perform certain functions.

Scenarios

The supplementary text message push feature of Message Push requires access to SMS resources. The service-linked role grants the necessary access permissions for this operation.

Create the mPaaS Message Push service-linked role

The mPaaS Message Push service-linked role is created automatically after you activate Short Message Service in the mPaaS console and grant authorization in the SMS console. You do not need to create the role manually. You can view the role on the Role Management page in the RAM console.

The Message Push service-linked role has the following permissions:

  • Role name: AliyunServiceRoleForMpaasPush

  • Access policy: AliyunServiceRolePolicyForMpaasPush

  • Permission description: Allows mPaaS Message Push to use Short Message Service to enable the supplementary text message push feature.

      {
        "Version": "1",
        "Statement": [
          {
            "Action": [
              "dysms:SendSms",
              "dysms:SendBatchSms",
              "dysms:QuerySendDetails"
            ],
            "Resource": "*",
            "Effect": "Allow"
          },
          {
            "Action": "ram:DeleteServiceLinkedRole",
            "Resource": "*",
            "Effect": "Allow",
            "Condition": {
              "StringEquals": {
                "ram:ServiceName": "push.mpaas.aliyuncs.com"
              }
            }
          }
        ]
      }

Delete the service-linked role

To delete the service-linked role (AliyunServiceRoleForMpaasPush), you must first disable the SMS interaction feature.