forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 1
/
route-table.yml
57 lines (57 loc) · 1.06 KB
/
route-table.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
ROSTemplateFormatVersion: '2015-09-01'
Description: Vpc RouteTable resource example
Parameters:
VpcId:
Type: String
VSwitchId:
Type: String
RouteTableName:
Type: String
Default: mytest
Resources:
RouteTable:
Type: ALIYUN::VPC::RouteTable
Properties:
VpcId:
Ref: VpcId
RouteTableName:
Ref: RouteTableName
Description: Test Vpc RouteTable
RouteTableAssociation:
Type: ALIYUN::VPC::RouteTableAssociation
Properties:
VSwitchId:
Ref: VSwitchId
RouteTableId:
Ref: RouteTable
Outputs:
RouteTableId:
Value:
Fn::GetAtt:
- RouteTable
- RouteTableId
VpcId:
Value:
Fn::GetAtt:
- RouteTable
- VpcId
RouteTableName:
Value:
Fn::GetAtt:
- RouteTable
- RouteTableName
RouteTableType:
Value:
Fn::GetAtt:
- RouteTable
- RouteTableType
VSwitchIds:
Value:
Fn::GetAtt:
- RouteTable
- VSwitchIds
VSwitchId:
Value:
Fn::GetAtt:
- RouteTableAssociation
- VSwitchId