1 個回答
- 最新
- 最多得票
- 最多評論
0
Manage to make it works with this code:
tmp = []
for sub in vpc.private_subnets:
tmp.append(sub.subnet_id)
rep_sub = dms.CfnReplicationSubnetGroup(self, "rep_sub",
replication_subnet_group_description="desc rep_sub",
subnet_ids=tmp
)
rep = dms.CfnReplicationInstance(self, "rep-instance",
replication_instance_class="dms.t2.micro",
replication_subnet_group_identifier=rep_sub.ref,
publicly_accessible=False
)
It creates the Subnet group and the association with the replication instance. The replication instance is then placed in the VPC where the subnets belongs.
已回答 4 年前
相關內容
- 已提問 6 個月前
- AWS 官方已更新 1 年前
- AWS 官方已更新 2 年前