Access Alibaba Cloud resources
After you connect Alibaba Cloud resources to a Digital Employee, conversations and long-running tasks can query and manage the cloud services within the scope authorized for the selected role. If this connector is not added, the Digital Employee can still use its role to query and manage cloud resources in the current account.
Prerequisites
-
A Digital Employee has been created.
-
The selected Alibaba Cloud role already has query or management permissions on the target cloud service.
-
The Digital Employee has Alibaba Cloud CLI enabled. If it is not enabled, configure the CLI execution policy first.
For information about configuring the Digital Employee role and runtime permissions, see Digital Employee permission configuration.
Procedure
1. Open Resource
Click Settings > Connectors > Resource.
2. Select Alibaba Cloud resources
-
Click Add resource connection.
-
Select Alibaba Cloud resources.
-
Click Next.
3. Configure the connection
-
Connector ID: Uniquely identifies the connector and cannot be modified after creation. Rules: 1 to 64 characters, consisting of only lowercase letters, digits, and hyphens, starting with a letter and ending with a letter or digit.
-
Name: Used to distinguish connections in the list. Up to 128 characters.
-
Alibaba Cloud role:
-
Employee role: Uses the role currently bound to the Digital Employee to access resources in the current account within the scope authorized for that role.
-
Custom role: Enter the
Role ARNin the formatacs:ram::{accountId}:role/{roleName}. -
Cross-account role: Enter the
Role ARNof the target account to connect to. For detailed configuration instructions, see Best practices for STAROps cross-account access permissions. -
Note: Custom role and Cross-account role both require you to click Check permissions. You can continue only after the check passes. If you change the Role ARN, you must check again.
-
-
Operation mode: Alibaba Cloud CLI by default. STAROps uses Alibaba Cloud CLI and the selected role to query and manage the cloud services within the scope authorized for that role. This connector does not import raw observability data.
Each connector uses only one Alibaba Cloud role. The role cannot be modified after creation. To change it, delete the connector and create a new one.
4. Check and save
In Check and add, verify the connector ID, type, name, Alibaba Cloud role, and operation mode. Then click Save.
After you save, the system checks the connection status. The connector appears in the Resource list.
Verification
We recommend that you verify whether the connector is added successfully as follows:
-
In the Resource list, the connector's name, type (Alibaba Cloud resources), status (Succeeded), role, and operation mode are consistent with what you configured.
-
Click View details and verify the role source and the account it belongs to.
FAQ
Custom role permission check failed
Make sure the Role ARN is in the format acs:ram::{accountId}:role/{roleName} and that the role is authorized to query the target cloud service. After you fix it, check again.
A message indicates that Alibaba Cloud CLI is not enabled
Resource connections rely on Alibaba Cloud CLI. Configure the CLI execution policy first, and then save or recheck the connector.
A message indicates that the connector ID already exists when saving
Change the connector ID and try again.
The connector status is Failed
Click Refresh status to check again. The role cannot be edited. If it still fails, delete the connector and create a new one.
You need to change the role
Click Delete on the card or in the details. Deletion cannot be undone.