Centrally manage assets across multiple accounts
To centrally manage assets across multiple Alibaba Cloud accounts with a single Bastionhost instance, integrate Bastionhost with Alibaba Cloud Resource Directory (RD) for unified O&M and governance.
Account types in Resource Directory
Resource Directory includes the following account types. For more information about Resource Directory, see What is Resource Directory?.
-
management account: The account used to enable Resource Directory. This account is the super administrator of the resource directory and has full control over the resource directory, its folders, and its member accounts.
-
delegated administrator account: A member account that the management account designates to manage a specific trusted service. The management account grants the delegated administrator account permissions to access organizational information within that service and perform management tasks across the organization.
-
member account: You can create new member accounts in a resource directory or invite existing Alibaba Cloud accounts to join the resource directory.
Multi-account asset import
-
You can import assets, such as ECS and ApsaraDB RDS instances, from a member account into a Bastionhost instance in a management account or a delegated administrator account. You cannot import assets from a management account or delegated administrator account into a Bastionhost instance in a member account.
-
Bastionhost instances in different accounts are isolated and not visible to each other.
-
Cross-account O&M may fail if the Bastionhost instance cannot reach a target asset over the internal network. To connect the Bastionhost instance to the target asset's network, you can use network connectivity solutions such as Cloud Enterprise Network (CEN), VPN, or O&M over a public IP, or use the network domain feature of Bastionhost. This ensures network connectivity from the Bastionhost instance to assets in each account.
For information about how to configure network domains, see Network domains.
Supported editions
Enterprise Edition and SM Edition
If your Bastionhost instance is a Basic Edition instance, you must upgrade it to a supported edition. For more information, see Upgrade an instance.
Prerequisites
-
Resource Directory is enabled. For more information, see Enable a resource directory.
-
At least one member account is added to your resource directory.
-
To create a new member account, see Create a member.
-
To add an existing Alibaba Cloud account, see Invite an Alibaba Cloud account to join a resource directory.
-
-
If you use a RAM user for management, you must grant the user the
AliyunYundunBastionHostFullAccessandAliyunResourceDirectoryFullAccesspermissions. For more information, see Grant permissions to a RAM user.
Procedure
Log on to the Bastionhost console. In the top navigation bar, select the region where your Bastionhost instance is located.
-
On the Instances page, find the target instance and choose .
-
In the Multi-account Management panel, click Added Member Account.
-
In the Added Member Account dialog box, select the target member accounts and click OK.
Next steps
After adding member accounts, you can import their assets. For more information, see Add hosts or Manage databases.