To connect a transit router (TR) to a network instance that belongs to another Alibaba Cloud account, the owner of the network instance must first authorize the transit router instance. This topic describes how to authorize a VPC instance, VBR instance, CCN instance, IPsec-VPN connection, or ECR instance for a transit router, how to change the payer of a network instance, and how to revoke the authorization.
Billing
After an Enterprise Edition transit router is connected to a VPC instance, VBR instance, IPsec-VPN connection, or ECR instance, network instance attachment fees and data forwarding fees are charged. When you authorize a network instance, you choose which account pays these fees: the account that owns the network instance, or the account that owns the Enterprise Edition transit router instance. For more information, see Billing overview.
Limits
A transit router instance that belongs to an Alibaba Cloud China site account can connect only to network instances that belong to Alibaba Cloud China site accounts. A transit router instance that belongs to an Alibaba Cloud international site account can connect only to network instances that belong to Alibaba Cloud international site accounts.
After an Enterprise Edition transit router instance is connected to a cross-account network instance, you must change the payer in both the resource account and the transit router account. The change takes effect at the top of the next hour. For more information, see Change the payer for a network instance.
Prerequisites
Before you authorize a network instance, make sure that you have completed the following tasks:
Confirm that the account that owns the network instance and the account that owns the transit router instance are of the same type.
A transit router instance that belongs to an Alibaba Cloud China site account can connect only to network instances that belong to Alibaba Cloud China site accounts. A transit router instance that belongs to an Alibaba Cloud international site account can connect only to network instances that belong to Alibaba Cloud international site accounts.
Obtain the ID of the Alibaba Cloud account (primary account) that owns the transit router instance.
Obtain the ID of the CEN instance to which the transit router instance belongs.
To authorize a VBR instance, apply for VBR instance authorization permissions. For instructions, see Connect a VBR to a cross-account CEN.
To authorize an IPsec-VPN connection, make sure that the IPsec-VPN connection is not attached to any resource:
If the IPsec-VPN connection is attached to a VPN Gateway instance, it cannot be attached to a transit router instance in the same account or another account.
If the IPsec-VPN connection is attached to a transit router instance, detach it first. For instructions, see Delete a network instance connection.
Scenario
This topic uses the scenario in the following figure to describe network instance authorization. A transit router instance in Account B needs to connect to VPC instances, VBR instances, CCN instances, IPsec-VPN connections, and ECR instances in Account A. The following sections describe how Account A authorizes the transit router instance in Account B to connect to these resources.
The following table lists the console that you use to authorize each type of network instance and whether the payer can be changed after authorization.
Network instance | Authorization console | Change the payer |
VPC instance | VPC console | Supported |
VBR instance | Express Connect console | Supported |
CCN instance | Smart Access Gateway console | Not supported |
IPsec-VPN connection | VPN Gateway console | Supported |
ECR instance | Express Connect console | Not supported |
Change the payer for a network instance
Only VPC instances, VBR instances, and IPsec-VPN connections support changing the payer. ECR instances do not currently support this operation. The procedure that you use depends on whether an Enterprise Edition transit router is already connected to the cross-account network instance:
If an Enterprise Edition transit router is not connected to the cross-account network instance, revoke the authorization in the resource account (the account that owns the network instance) and then create the authorization again.
If an Enterprise Edition transit router is connected to the cross-account network instance, change the payer in the resource account first, and then change the payer on the transit router side. The change takes effect at the top of the next hour.
You can change the payer in the console or by calling API operations. The console procedure uses a cross-account VPC instance as an example. The API procedure lists the operations for VPC instances, VBR instances, and IPsec-VPN connections.
Console
The following example changes the payer for a cross-account VPC instance. The assumptions are as follows:
Account A is the owner of the VPC instance, and Account B is the owner of the CEN instance and the transit router instance.
Account B is the current payer (CEN Instance Owner).
To change the payer to Account A (VPC Users), perform the following steps:
Log on to Account A. On the details page of the target VPC instance, click the Cross-account Authorization tab. In the Payer column of the target authorization entry, click Edit and select VPC Users.
Log on to Account B and go to the target transit router. In the Payer Account column of the target VPC connection, click Edit and select Resource Owner Account.
Wait until the top of the next hour for the change to take effect.
API
Log on to the resource account and call ModifyGrantInstanceToTransitRouter. Set
OrderTypeto the target payer.Log on to the transit router account and change the payer:
For a VPC instance, call UpdateTransitRouterVpcAttachmentAttribute. Set
OrderTypeto the target payer.For a VBR instance, call UpdateTransitRouterVbrAttachmentAttribute. Set
OrderTypeto the target payer.For an IPsec-VPN connection, call UpdateTransitRouterVpnAttachmentAttribute. Set
OrderTypeto the target payer.
Wait until the top of the next hour for the change to take effect. To verify the result, log on to the transit router account and call DescribeGrantRulesToCen, and then confirm that
EffectiveOrderTypeis the target payer.
Revoke network instance authorization
Before you revoke the authorization of a network instance, detach the transit router instance from the network instance. For instructions, see Delete a network instance connection.
Revoke VPC instance authorization
Log on to the VPC console with Account A.
In the top menu bar, select the region of the target VPC instance.
On the VPC page, find the target VPC instance and click the instance ID.
Click the Cross-account Authorization tab. On the CEN tab, find the target authorization record and, in the Actions column, click Revoke Permissions.
In the Revoke Permissions dialog box, confirm the information and click OK.
Revoke VBR instance authorization
Log on to the Express Connect console with Account A.
In the top menu bar, select the region of the target VBR instance.
In the left-side navigation pane, click Virtual Border Routers (VBRs).
On the Virtual Border Routers (VBRs) page, click the target VBR instance ID.
Click the CEN Authorization tab. On this tab, find the target authorization record and, in the Actions column, click Delete.
In the Revoke Authorization dialog box, confirm the information and click OK.
Revoke CCN instance authorization
Log on to the Smart Access Gateway console with Account A.
In the top menu bar, select the region of the target CCN instance.
In the left-side navigation pane, click CCN.
On the CCN page, click the target CCN instance ID.
Click the CEN Cross Account Authorization Information tab. On this tab, find the target authorization record and, in the Actions column, click Revoke Authorization.
In the Note dialog box, confirm the information and click OK.
Revoke IPsec-VPN connection authorization
Log on to the VPN Gateway console with Account A.
In the top menu bar, select the region of the target IPsec-VPN connection.
In the left-side navigation pane, choose Network Interconnection > VPN > IPsec Connections.
On the IPsec Connections page, find the target IPsec-VPN connection and click the IPsec-VPN connection ID.
On the Cross-account Authorization tab of the IPsec-VPN connection details page, find the target authorization record and, in the Actions column, click Revoke Permissions.
In the Revoke Permissions dialog box, confirm the information and click OK.
Revoke ECR connection authorization
Log on to the Express Connect console with Account A.
In the left-side navigation pane, click Express Connect Router (ECR).
On the Express Connect Router (ECR) page, click the target ECR instance ID.
Click the CEN Authorization tab. On this tab, find the target authorization record and, in the Actions column, click Delete.
In the Revoke Authorization dialog box, confirm the information and click OK.