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
Step 1: Activate Message Queue for Apache RocketMQ
Step 2: (Required) Grant permissions to a RAM user
- In the left-side navigation pane, choose .
- On the Users page, find the RAM user to which you want to grant permissions and click Add Permissions in the Actions column.
- 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.
- Click OK.
- Click Complete.