forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 1
/
vpc-access-config.yml
74 lines (74 loc) · 1.6 KB
/
vpc-access-config.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
72
73
74
ROSTemplateFormatVersion: '2015-09-01'
Description: ApiGateway VpcAccessConfig resource example
Parameters:
VpcId:
Type: String
Name:
Type: String
Port:
Type: Number
Default: 8080
VSwitchId:
Type: String
Description: VSW Id.
SecurityGroupId:
Type: String
Description: Security Group Id.
ImageId:
Type: String
Label: ECS Image Id
Default: centos_7
InstanceType:
Type: String
Label: ECS Instance Type
Default: ecs.c5.large
SystemDiskCategory:
Type: String
Description: Category of system disk. Default is cloud_efficiency. support cloud|cloud_efficiency|cloud_ssd|cloud_essd|ephemeral_ssd.Old
instances will not be changed.
Default: cloud_essd
AllowedValues:
- cloud
- cloud_efficiency
- cloud_ssd
- cloud_essd
- ephemeral_ssd
LoginPassword:
Type: String
Description: ECS Login Password
Default: Admin123
MinLength: 8
MaxLength: 41
NoEcho: true
Resources:
ECS:
Type: ALIYUN::ECS::Instance
Properties:
VpcId:
Ref: VpcId
VSwitchId:
Ref: VSwitchId
SecurityGroupId:
Ref: SecurityGroupId
ImageId:
Ref: ImageId
IoOptimized: optimized
AllocatePublicIP: true
InstanceType:
Ref: InstanceType
SystemDiskCategory:
Ref: SystemDiskCategory
Password:
Ref: LoginPassword
VpcAccessConfig:
Type: ALIYUN::ApiGateway::VpcAccessConfig
Properties:
VpcId:
Ref: VpcId
InstanceId:
Ref: ECS
Name:
Ref: Name
Port:
Ref: Port
DependsOn: ECS