forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvpc.yml
71 lines (71 loc) · 2.16 KB
/
vpc.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
ROSTemplateFormatVersion: '2015-09-01'
Description:
zh-cn: 创建VPC实例,可自定义名称和CIDR Block,输出路由表ID、路由器ID和VPC ID。
en: Creating a VPC instance enables customization of the name and CIDR Block, with
the output providing the Route Table ID, Router ID, and VPC ID.
Parameters:
VpcName:
Type: String
Label:
en: VPC Name
zh-cn: VPC 名称
Description:
en: Name of VPC, [2, 128] English or Chinese characters, must start with a letter
or Chinese in size, can contain numbers, '_' or '.', '-'.
zh-cn: VPC 名称,[2,128]英文或中文字符,必须以字母或中文开头,可以包含数字、下划线或“.”、“-”。
ConstraintDescription:
en: '[2, 128] English or Chinese characters'
zh-cn: '[2, 128] 英文或中文字符'
Default: MyVPC
MinLength: 2
MaxLength: 128
CidrBlock:
Type: String
Label:
en: VPC CIDR Block
zh-cn: 专有网络网段
Description:
en: 'The IP address range of the VPC in the CIDR Block form; <br>you can use
the following IP address ranges and their subnets: <br><font color=''green''>[10.0.0.0/8]</font><br><font
color=''green''>[172.16.0.0/12]</font><br><font color=''green''>[192.168.0.0/16]</font>'
zh-cn: VPC的IP地址范围;<br>您可以使用以下IP地址范围及其子网:<br><font color='green'>[10.0.0.0/8]</font><br><font
color='green'>[172.16.0.0/12]</font><br><font color='green'>[192.168.0/16]</font>
Default: 192.168.0.0/16
AllowedValues:
- 10.0.0.0/8
- 172.16.0.0/12
- 192.168.0.0/16
Resources:
Vpc:
Type: ALIYUN::ECS::VPC
Properties:
CidrBlock:
Ref: CidrBlock
VpcName:
Ref: VpcName
Outputs:
RouteTableId:
Value:
Fn::GetAtt:
- Vpc
- RouteTableId
VRouterId:
Value:
Fn::GetAtt:
- Vpc
- VRouterId
VpcId:
Value:
Fn::GetAtt:
- Vpc
- VpcId
Metadata:
ALIYUN::ROS::Interface:
ParameterGroups:
- Parameters:
- VpcName
- CidrBlock
Label:
default: VPC
TemplateTags:
- acs:example:弹性计算:创建vpc实例