【发布时间】:2020-07-03 11:26:26
【问题描述】:
环境:CDK 1.49.1、Typescript、Mac OS X
我的 AWS 账户预装了一个 Redshift 子网组,假设它名为 accountsetup-dirk-redshift-subnet-group
在使用 Cluster 构造时,我尝试传入子网组:
new redshift.Cluster(this,
`Cluster${this.stackName}`,
{
vpc: vpc,
...
vpcSubnets: {subnetName: 'accountsetup-dirk-redshift-subnet-group'},
运行 cdk 合成器返回:
There are no subnet groups with name 'accountsetup-dirk-redshift-subnet-group' in this VPC. Available names: Private
如何将我的新集群放入现有子网组?
【问题讨论】: