You must activate Message Queue for Apache 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 Message Queue for Apache RocketMQ resources and use the resources to send and subscribe to messages by using SDKs.

Prerequisites

An Alibaba Cloud account is created, and real-name verification is complete. For more information, see Sign up with Alibaba Cloud.

Step 1: Activate Message Queue for Apache RocketMQ

  1. Open the Message Queue for Apache RocketMQ product details page.
  2. Click Log In in the upper-right corner of the page.
  3. On the Sign In page, enter your Alibaba Cloud account and password, and click Sign In.
  4. On the product details page, click Console.
    You are redirected to the Message Queue for Apache RocketMQ console.
  5. On the Overview page, click Activate Now for Free.
    Activate Now for Free
  6. On the service activation page, verify the contents of the order, read the service agreement, select Message Queue (MQ) Terms of Service, and then click Activate Now.

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

  1. In the left-side navigation pane, choose Identities > Users.
  2. On the Users page, find the RAM user to which you want to grant permissions and click Add Permissions in the Actions column.
  3. In the Add Permissions panel, click the policy that you want to grant to the RAM user. Then, click OK.
Message Queue for Apache RocketMQ provides the following system policies. You can grant related permissions to the RAM user based on the required permission scope.
Policy Description
AliyunMQFullAccess The permissions to manage Message Queue for Apache RocketMQ. Such permissions are equivalent to the permissions that an Alibaba Cloud account has. A RAM user to which this policy is attached can send and subscribe to all messages and use all the features of the console.
AliyunMQPubOnlyAccess The message sending permissions of Message Queue for Apache RocketMQ. A RAM user to which this policy is attached can use all the resources of the relevant Alibaba Cloud account to send messages by using SDKs.
AliyunMQSubOnlyAccess The message subscription permissions of Message Queue for Apache RocketMQ. A RAM user to which this policy is attached can use all the resources of the relevant Alibaba Cloud account to subscribe to messages by using SDKs.
AliyunMQReadOnlyAccess The read-only permissions on Message Queue for Apache RocketMQ. A RAM user to which this policy is attached can only read resource information by using the console or by calling API operations.
Note System policies cover a large permission scope. For example, after a RAM user is granted the AliyunMQFullAccess permission, the RAM user can manage all resources of Message Queue for Apache RocketMQ. Message Queue for Apache RocketMQ provides more custom policies for fine-grained authorization on a specific type of resources. For example, you can grant RAM users only permissions to manage topics in the console. For more information about custom policies, see Policies.
  1. Click OK.
  2. Click Complete.

What to do next

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