-
Notifications
You must be signed in to change notification settings - Fork 35
/
subscription-instance.yml
61 lines (61 loc) · 1.85 KB
/
subscription-instance.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
ROSTemplateFormatVersion: '2015-09-01'
Description:
zh-cn: 创建DTS数据订阅实例及消费组,配置订阅对象、类型,定义网络安全与访问凭据。
en: Create DTS data subscription instances and consumer groups, configure subscription
objects and types, and define network security and access credentials.
Parameters:
SourceEndpointInstanceType:
Type: String
Description: 'Data subscription instance type, value is: MySQL, PolarDB, DRDS,
Oracle. Default: MySQL.'
Default: MySQL
Resources:
SubscriptionInstance:
Type: ALIYUN::DTS::SubscriptionInstance
Properties:
Configuration:
SubscriptionObject:
- DBName: fvtdts
SubscriptionDataType:
DML: true
DDL: true
SubscriptionInstanceName: fvt-sdadsa
SubscriptionInstance:
VPCId: ''
VSwitchId: ''
SourceEndpoint:
InstanceType: RDS
InstanceID: rm-bp17zr4xt0q7fs34x
UserName: fvtdtsuser
Password: Admin123
SubscriptionInstanceNetworkType: classic
SourceEndpointInstanceType:
Ref: SourceEndpointInstanceType
ConsumerGroup:
Type: ALIYUN::DTS::ConsumerGroup
Properties:
ConsumerGroupPassword: Admin123
ConsumerGroupUserName: fvtdtsconsum
ConsumerGroupName: fvt-ros-dasd
SubscriptionInstanceId:
Ref: SubscriptionInstance
DependsOn: SubscriptionInstance
Outputs:
SubscriptionInstanceId:
Description: The ID of Data subscription instance.
Value:
Fn::GetAtt:
- SubscriptionInstance
- SubscriptionInstanceId
ConsumerGroupID:
Description: Consumer group ID
Value:
Fn::GetAtt:
- ConsumerGroup
- ConsumerGroupID
ConsumerGroupName:
Description: Consumer group name
Value:
Fn::GetAtt:
- ConsumerGroup
- ConsumerGroupName