Integrate PrivateLink with RAM
Resource Access Management (RAM) lets you control who can access your PrivateLink resources and what they can do. Use RAM to define permission policies, attach them to RAM users or roles, and manage service-linked roles for PrivateLink.
RAM feature support
| RAM feature | PrivateLink support |
|---|---|
| System policies | Yes |
| Custom policies | Yes |
| Attach policies to RAM users | Yes |
| Attach policies to RAM user groups | Yes |
| Attach policies to RAM roles | Yes |
| Service-linked roles | Yes |
Permission model
RAM controls access to PrivateLink resources through policies attached to RAM users, RAM user groups, and RAM roles.
Default permissions by identity
| Identity | Default permission |
|---|---|
| Alibaba Cloud account | Resource owner with full control over all resources |
| RAM user | No permissions |
| RAM user (as resource creator) | No permissions on created resources |
Ownership rules:
Each Alibaba Cloud resource has exactly one owner, and that owner must be an Alibaba Cloud account.
The resource owner is not necessarily the resource creator. If a RAM user creates a resource, the resource belongs to the RAM user's Alibaba Cloud account, not to the RAM user.
A RAM user cannot access or manage resources until the Alibaba Cloud account attaches explicit allow policies to that user.
Policies
A policy defines a set of permissions, specifying which resources can be accessed, which operations are allowed, and under what conditions.
PrivateLink supports two policy types:
System policy: Created and maintained by Alibaba Cloud. These policies cannot be modified. Use system policies for standard access control scenarios. For the full list, see PrivateLink system policies.
Custom policy: Created by you when system policies do not meet your requirements. Custom policies provide fine-grained permission management over specific resources and operations. For guidance, see PrivateLink custom policies.
Attach policies to RAM entities
Attach one or more policies to a RAM user, RAM user group, or RAM role to grant access. Both system policies and custom policies can be attached to any RAM entity. When a policy is updated, the changes take effect automatically — no re-attachment needed.
Service-linked roles
When PrivateLink needs to access other Alibaba Cloud resources on your behalf (for example, when creating an endpoint), it uses a service-linked role. PrivateLink creates and deletes this role automatically after you grant the required permissions.
| Role name | Purpose |
|---|---|
| AliyunServiceRoleForPrivatelink | Grants an endpoint access to other cloud resources at creation time |
Service-linked roles count against your RAM role quota. If the quota is exhausted, you can still create service-linked roles, but you cannot create other RAM role types. For quota details, see Limits.
Delete the service-linked role
Delete the service-linked role only when you no longer use PrivateLink. Before deleting it, make sure no endpoint is available in your Alibaba Cloud account.
Delete all endpoints. See Delete an endpoint.
Delete the service-linked role. See Delete the service-linked role for PrivateLink.