【问题标题】:AWS CDK: Put Redshift cluster into existing subnet groupAWS CDK:将 Redshift 集群放入现有子网组
【发布时间】: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

如何将我的新集群放入现有子网组?

【问题讨论】:

    标签: amazon-redshift aws-cdk


    【解决方案1】:

    您可以通过执行下面给出的操作来为 RDS 实现此目标

    subnetGroup: rds.SubnetGroup.fromSubnetGroupName(this,'mysubnet','default')
    

    【讨论】:

      猜你喜欢
      • 2020-02-04
      • 1970-01-01
      • 2021-11-27
      • 2021-02-22
      • 2021-01-30
      • 1970-01-01
      • 2021-04-05
      • 2020-04-26
      • 1970-01-01
      相关资源
      最近更新 更多