AliCloud
Alibaba Cloud (AliCloud) Resource Access Management (RAM)
This page discusses creating and using an AliCloud RAM-based authentication method in Akeyless.
AliCloud authentication provides an automated flow to retrieve an Akeyless token for RAM principals and AliCloud services or resources.
AliCloud authentication is intended for workload authentication and is not recommended for direct interactive Console sign-in.
Creating an AliCloud Authentication Method
This action is distinct from creating a new Akeyless account: it creates an additional AliCloud RAM-based authentication method for an existing account.
Required AliCloud setting:
- Bounded Account IDs: Configure one or more AliCloud account IDs that are allowed to authenticate by using this authentication method.
In the Console, enter values as a comma-separated list (for example,1234567890123,9876543210987).
With the CLI, repeat--bound-account-idfor each value.
Creating an AliCloud Authentication Method with the Console
To create a new AliCloud-based authentication method with the Console:
- In the Console, under Administration, navigate to Users & Auth Methods.
- Select + New. This opens the Create Authentication Method form.
- On the Type selection screen, select AliCloud, then Next →.
- Enter a name for the Authentication Method in the Name field. Optionally, include a path using
/separators to place the Authentication Method in a virtual folder, then select Next →. - Configure AliCloud-specific fields as needed.
- Select Finish.
Creating an AliCloud Authentication Method with the CLI
To create an AliCloud-based authentication method with the CLI:
akeyless auth-method create alicloud \
--name <AliCloud Auth Method Name> \
--bound-account-id <AliCloud Account ID>You can provide multiple AliCloud account IDs by repeating --bound-account-id.
Read about more parameters available when creating an AliCloud-based authentication method.
Using an AliCloud Authentication Method
Using an AliCloud Authentication Method with the CLI
To use an AliCloud-based authentication method with a CLI profile, run the Akeyless configure command from an AliCloud resource (for example, an ECS instance or a container running under a RAM role):
akeyless configure \
--profile default \
--access-id <Access ID> \
--access-type alicloudTo inspect the cloud identity token, run the Akeyless get-cloud-identity command:
akeyless get-cloud-identity \
--cloud-provider alicloudTo authenticate and retrieve a temporary Akeyless token, run the Akeyless auth command:
akeyless auth \
--access-id <Access ID> \
--access-type alicloud
Note (Least Privilege):AliCloud authentication does not require privileged RAM permissions. Attach a minimally privileged RAM role to the resource that authenticates to Akeyless (for example, an ECS instance or a container).
Associate with Access Roles
After creating the authentication method, associate it with one or more Access Roles so authenticated identities can perform actions in Akeyless.
- In the Console, under Administration, navigate to Users & Auth Methods.
- Select the AliCloud authentication method.
- Add the required Access Roles.
- Save the changes.
For role configuration details, see Access Roles.
Update an Existing AliCloud Authentication Method
AliCloud authentication methods can require updates over time, for example when bounded account IDs, ARNs, or related constraints change.
To update in the Console:
- In the Console, under Administration, navigate to Users & Auth Methods.
- Select the AliCloud authentication method to update.
- Update the required fields.
- Save the changes.
To update with the CLI, use the relevant akeyless auth-method update alicloud flags in CLI Reference - Authentication.
Troubleshooting
If AliCloud authentication fails, check the following:
- The workload is running with the expected RAM principal.
- The workload account matches configured bounded account IDs, ARNs, or other bounded fields.
- The configured Access ID and
alicloudaccess type are correct. - The STS endpoint is reachable from the Gateway and matches the configured region, if a custom endpoint is set.
Optional Features
For optional features that apply across Authentication Methods, see Common Optional Features.
AliCloud-Specific Optional Features
- Bounded ARNs: Enter one or more full RAM role or user ARNs that are allowed to authenticate by using this method. In the Console, enter values as a comma-separated list. With the CLI, repeat
--bound-arnfor each value. Supports wildcard patterns such as*and?. - Bounded Role Names: Enter one or more RAM role names that are allowed to authenticate. In the Console, enter values as a comma-separated list. With the CLI, repeat
--bound-role-namefor each value. - Bounded Role IDs: Enter one or more RAM role IDs that are allowed to authenticate. In the Console, enter values as a comma-separated list. With the CLI, repeat
--bound-role-idfor each value. - Bounded User Names: Enter one or more RAM user names that are allowed to authenticate. In the Console, enter values as a comma-separated list. With the CLI, repeat
--bound-user-namefor each value. - Bounded User IDs: Enter one or more RAM user IDs that are allowed to authenticate. In the Console, enter values as a comma-separated list. With the CLI, repeat
--bound-user-idfor each value. - Custom STS Endpoint: Set a custom AliCloud STS endpoint URL if your environment requires a non-default endpoint. If not set, Akeyless uses
https://sts.aliyuncs.com. - Unique Identifier: Set a sub-claim key used to uniquely identify authenticated RAM principals.
What's Next
Make sure to associate your new Authentication Method with an Access Role to grant the relevant permissions within Akeyless.
Updated 2 days ago
