All Products
Search
Document Center

Elasticsearch:Grant permissions to a RAM user

Last Updated:May 28, 2024

If you purchase an Alibaba Cloud Elasticsearch cluster and other personnel (such as O&M, development, or data analytics personnel) in your organization want to use RAM users to access the cluster, you can attach policies to the RAM users based on the features that are required by the personnel. This improves system security and availability. You can also create multiple user groups and attach different policies to the user groups. This way, you can manage user permissions by user group.

Policy description

RAM is a resource access control service provided by Alibaba Cloud. For more information, see What is RAM?

Policies are categorized into system policies and custom policies.

  • System policies

    System policy

    Description

    AliyunElasticsearchReadOnlyAccess

    Grants the read-only permissions on Elasticsearch or Logstash clusters. This policy can be attached to read-only users.

    AliyunElasticsearchFullAccess

    Grants the management permissions on Elasticsearch clusters, Logstash clusters, or Beats shippers. This policy can be attached to administrators.

  • Custom policies

    If system policies do not meet your business requirements, you can create custom policies. For more information, see Create a custom policy.

Prerequisites

A RAM user is created. For more information, see Create a RAM user.

Procedure

  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.

    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 Grant permissions.

  5. Click Close.

    The granted permissions then take effect. You can log on to the Elasticsearch console as the RAM user and perform authorized operations.

    Note