edit-icon download-icon

ALIYUN::ECS::Route

Last Updated: Mar 22, 2018

The ALIYUN::ECS::Route type can be used to create a custom route.

Syntax

  1. {
  2. "Type" : "ALIYUN::ECS::ROUTE",
  3. "Properties" : {
  4. "RouteId" : String,
  5. "RouteTableId" : String,
  6. "DestinationCidrBlock": String,
  7. "NextHopType": String,
  8. "NextHopId": String,
  9. "NextHopList" : List
  10. }
  11. }

Attributes

Attribute name Type Required? Update allowed? Description Constraint
DestinationCidrBlock string Yes No Target network segment of RouteEntry. N/A
RouteTableId string Yes No Route table ID. N/A
NextHopId string Yes No ID of the next-hop instance of RouteEntry. It is applicable to non-ECMP routes.
RouteId string Yes No Route ID. N/A
NextHopType string No No Next hop type. Value options: Instance, Tunnel, HaVip, and RouterInterface. The default value is Instance, that is, the ECS instance.
NextHopList list No No Next-hop list of RouteEntry. NextHopType and NextHopId specify the next hop. If NextHopList is specified, the route is of the ECMP type. NextHopList supports two to four next hops in ECMP mode. Only routes in VRouter can be used to specify NextHopList, and the next hop can only be a router interface between VRouter and VBR. If NextHopList is not specified, the route is in a non-ECMP type.

NextHopList syntax

  1. "NextHopList" : [
  2. "NextHopId" : String,
  3. "NextHopType" : String
  4. ]

NextHopList attributes

Attribute name Type Required? Update allowed? Description Constraint
NextHopId string Yes No ID of the next-hop instance of RouteEntry. N/A
NextHopType string No No Next hop type. Value options: Instance, Tunnel, HaVip, and RouterInterface. The default value is RouterInterface, that is, the router interface instance.

Return values

Fn::GetAtt

None

Example

  1. {
  2. "ROSTemplateFormatVersion" : "2015-09-01",
  3. "Resources" : {
  4. "ECSRoute": {
  5. "Type": "ALIYUN::ECS::Route",
  6. "Properties": {
  7. "RouteId": "vrt-25mz0uxk4",
  8. "RouteTableId": "vtb-25oudgpsu",
  9. "DestinationCidrBlock": "172.16.107.0/24",
  10. "NextHopId": "i-25xzyhxtp"
  11. }
  12. }
  13. }
  14. }
Thank you! We've received your feedback.