All Products
Search
Document Center

ApsaraMQ for RocketMQ:Activate ApsaraMQ for RocketMQ and grant permissions

Last Updated:Oct 27, 2023

You must activate ApsaraMQ for RocketMQ on the Alibaba Cloud official website before you can use the service. If your account is a Resource Access Management (RAM) user, you must grant permissions to the RAM user before you can use the console or API to access the corresponding resources in ApsaraMQ for RocketMQ and use the resources to send and consume messages by using SDKs.

Prerequisites

An Alibaba Cloud account is created and real-name verification is complete.

Step 1: Activate ApsaraMQ for RocketMQ

  1. Log on to the ApsaraMQ for RocketMQ console.

  2. In the dialog box that appears, click Activate Message Queue >>.

  3. On the service activation page, select Message Queue (MQ) Terms of Service, and then click Activate Now.

Step 2: (Required for RAM users) Grant permissions to a RAM user

  1. Log on to the RAM console with an Alibaba Cloud account.

  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.

  4. In the Add Permissions panel, grant permissions to the RAM user.

    1. Select the authorization scope.

      • Alibaba Cloud Account: The permissions take effect on the current Alibaba Cloud account.

      • Specific Resource Group: The permissions take effect in a specific resource group.

        Note

        If you select Specific Resource Group for Authorized Scope, make sure that the cloud service supports resource groups. For more information, see Services that work with Resource Group.

    2. Specify the principal.

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

    3. Select policies.

      RAM supports the following types of policies: system policies and custom policies. You can choose policies based on your business requirements.

      Note

      You can attach a maximum of five policies to a RAM user at a time. If you want to attach more than five policies to a RAM user, perform the operation multiple times.

  5. Click OK.

  6. Click Complete.

ApsaraMQ for RocketMQ provides the following system policies. You can grant related permissions to a RAM user based on the permission scope.

Policy nameDescription
AliyunMQFullAccessThe permissions that are required to manage ApsaraMQ for RocketMQ. This policy grants permissions that are equivalent to the permissions of an Alibaba Cloud account. RAM users to whom this policy is attached have permissions to send and subscribe to messages and perform all actions in the console.
AliyunMQPubOnlyAccessThe permissions that allow users of ApsaraMQ for RocketMQ to send messages. RAM users to whom this policy is attached have the permissions to use all resources of an Alibaba Cloud account to send messages by using SDKs.
AliyunMQSubOnlyAccessThe permissions that allow users of ApsaraMQ for RocketMQ to subscribe to messages. RAM users to whom this policy is attached have the permissions to use all resources of an Alibaba Cloud account to subscribe to messages by using SDKs.
AliyunMQReadOnlyAccessThe permissions that allow users of ApsaraMQ for RocketMQ to only read the information about resources. RAM users to whom this policy is attached have the permissions to only read the information about the resources of an Alibaba Cloud account in the console or by calling API operations.
Note

System policies provide a wide scope of permissions. For example, a RAM user to which the AliyunMQFullAccess policy is attached can manage all resources of ApsaraMQ for RocketMQ. ApsaraMQ for RocketMQ provides custom policies to allow you to implement fine-grained permission management on a specific type of resource. For example, you can grant a RAM user only the permissions to use the console to manage topics. For more information about custom policies, see Policies and examples.

What to do next

You can click Console to create resources. For more information, see Create resources.