Overview of Resource Access Management

Updated at:

Resource Access Management (RAM) lets you create RAM users and assign them different permissions. This helps you avoid the security risks associated with exposing the AccessKey pair of your Alibaba Cloud account.

The following sections describe typical scenarios for using RAM.

Separate permissions using RAM users

Enterprise A has a project, Project-X, that runs on Alibaba Cloud. The project uses several Alibaba Cloud products, such as Elastic Compute Service (ECS) instances, ApsaraDB RDS instances, Server Load Balancer (SLB) instances, and Object Storage Service (OSS) buckets. Multiple employees need to manage these cloud resources. Because each employee has different job responsibilities, they require different permissions. Enterprise A has the following requirements:

  • For security reasons, Enterprise A wants to avoid sharing the AccessKey pair of its Alibaba Cloud account directly with employees. Instead, Enterprise A wants to create a separate RAM user for each employee.

  • Each RAM user can manage only the resources for which they have been granted permissions. Enterprise A can revoke permissions from a RAM user or delete a RAM user at any time.

  • RAM users are not billed independently. All costs are charged to the Alibaba Cloud account of Enterprise A.

  • To meet these requirements, you can use the authorization features of RAM to separate user permissions and centrally manage resources.

Use RAM roles for cross-account access

Alibaba Cloud account A and Alibaba Cloud account B belong to two different enterprises. Enterprise A uses several cloud resources for its business, such as ECS instances, RDS instances, SLB instances, and OSS buckets.

  • Enterprise A wants to focus on its business systems and delegate tasks such as Operations and Maintenance (O&M), monitoring, and management of its cloud resources to Enterprise B.

  • Enterprise B can then assign permissions to access Enterprise A's resources to its employees. This allows Enterprise B to maintain fine-grained control over employee permissions.

  • If the O&M contract between Enterprise A and Enterprise B ends, Enterprise A can revoke the authorization at any time.

  • To meet these requirements, you can use RAM roles to enable cross-account authorization and control resource access.

Use RAM service roles for dynamic access to cloud services

If you purchase ECS instances and deploy applications on them, the applications may need an AccessKey pair to call the APIs of other Alibaba Cloud services. You have two options:

  • Embed the AccessKey pair directly in your code.

  • Store the AccessKey pair in your application's configuration file.

However, both approaches present two problems:

  • Security risks: If an AccessKey pair is stored in plaintext on an ECS instance, it can be exposed if the instance's snapshots or images are compromised.

  • O&M complexity: The AccessKey pair is stored on the instance. For example, to rotate the key for periodic security updates or to switch identities, you must update and redeploy every instance and image. This process complicates instance and image management.

ECS is integrated with the access control features of RAM. This lets you assign a RAM role with the appropriate permissions to an ECS instance. Applications that run on the instance can then obtain a temporary security token from the role to call Alibaba Cloud service APIs.

Access policies for Intelligent Advisor

Intelligent Advisor supports the following system policies:

  • AliyunAdvisorFullAccess: Grants full permissions to manage Intelligent Advisor. This includes permissions for edit and set operations.

  • AliyunAdvisorReadOnlyAccess: Grants read-only permissions to access Intelligent Advisor.

More information