Simple Message Queue (formerly MNS): Activation and permissions

更新时间:
复制 MD 格式

Before you use Simple Message Queue (formerly MNS), you must activate the service on its product page. If you are a RAM user, your Alibaba Cloud account must grant you the necessary permissions to access Simple Message Queue (formerly MNS) resources. These permissions let you manage resources through the console or APIs, and send and receive messages with an SDK. This topic describes how to activate Simple Message Queue (formerly MNS) and grant permissions to RAM users.

Prerequisites

For more information, see Sign up with Alibaba Cloud.

Step 1: Activate Simple Message Queue (formerly MNS)

  1. Log on to the Alibaba Cloud official website and choose Product > Middleware > ApsaraMQ > Simple Message Queue (formerly MNS).

  2. On the product page, click Activate Now.

  3. Read the MNS Terms of Service, select the MNS Terms of Service checkbox, and then click Activate Now.

    The message Congratulations! Activation successful. appears.

Step 2: Grant permissions to RAM users

  1. Log on to the RAM console as a RAM administrator.

  2. In the left-side navigation pane, choose Identities > Users.

  3. On the Users page, find the required RAM user, and click Add Permissions in the Actions column.

    image

    You can also select multiple RAM users and click Add Permissions in the lower part of the page to grant permissions to the RAM users at a time.

  4. In the Grant Permission panel, grant permissions to the RAM user.

    1. Configure the Resource Scope parameter.

      • Account: The authorization takes effect on the current Alibaba Cloud account.

      • Resource Group: The authorization takes effect on a specific resource group.

        Important

        If you select Resource Group for the Resource Scope parameter, make sure that the required cloud service supports resource groups. For more information, see Services that work with Resource Group. For more information about how to grant permissions on a resource group, see Control access to ECS instances with resource groups.

    2. Configure the Principal parameter.

      The principal is the RAM user to which you want to grant permissions. The current RAM user is automatically selected.

    3. Configure the Policy parameter.

      A policy contains a set of permissions. Policies can be classified into system policies and custom policies. You can select multiple policies at a time.

      • System policies: policies that are created by Alibaba Cloud. You can use but cannot modify these policies. Version updates of the policies are maintained by Alibaba Cloud. For more information, see Services that work with RAM.

        Note

        The system automatically identifies high-risk system policies, such as AdministratorAccess and AliyunRAMFullAccess. We recommend that you do not grant unnecessary permissions by attaching high-risk policies.

      • Custom policies: You can manage and update custom policies based on your business requirements. You can create, update, and delete custom policies. For more information, see Create a custom policy.

    4. Click OK.

  5. Click Close.

Simple Message Queue (formerly MNS) provides the system policies that are listed in the following table. You can attach these policies to a RAM user to grant permissions.

Policy name

Description

AliyunMNSFullAccess

Grants full management permissions for Simple Message Queue (formerly MNS). This is equivalent to the permissions of an Alibaba Cloud account. A RAM user with this policy has permissions to send and receive all messages and perform all operations in the console.

AliyunMNSReadOnlyAccess

Grants read-only permissions for Simple Message Queue (formerly MNS). A RAM user with this policy can only read resource information using the console or by calling API operations.

Note

System policies grant broad permissions. For example, the AliyunMNSFullAccess policy lets a RAM user perform all operations on all Simple Message Queue (formerly MNS) resources. For more fine-grained access control, Simple Message Queue (formerly MNS) also provides custom policies. For more information, see Custom policies.

Next steps

Click Console to create resources. For more information, see Queue model quick start and Topic model quick start.