can someone help me what the issue here?
# help
a
can someone help me what the issue here?
s
I would try fist to align subnetGroup for ServerlessCluster with your VPC subnet config (where you define only PRIVATE_ISOLATED subnet). From error message I guess that PRIVATE is expected by default.
a
do you mean something like this?
Copy code
vpcSubnets: {
  subnetType: SubnetType.PRIVATE_ISOLATED,
  subnetGroupName: 'cinemathorPrivateSubnet'
},
Copy code
const cluster = new rds.ServerlessCluster(this, "CinemathorDBCluster", {
      vpc,
      defaultDatabaseName,
      vpcSubnets: {
        subnetType: SubnetType.PRIVATE_ISOLATED,
        subnetGroupName: 'cinemathorPrivateSubnet'
      },
      engine: rds.DatabaseClusterEngine.auroraPostgres({version: rds.AuroraPostgresEngineVersion.VER_10_14}),
      scaling: {autoPause: Duration.minutes(30)},
      backupRetention: Duration.days(0),
      deletionProtection: true,
      enableDataApi: true,
    });
now I have new on
Copy code
Error: Only one of 'subnetType,subnetGroupName' can be supplied to subnet selection.
aaa moment
yea, I found the issue thanks
Copy code
const cluster = new rds.ServerlessCluster(this, "CinemathorDBCluster", {
      vpc,
      defaultDatabaseName,
      vpcSubnets: {
        subnetType: SubnetType.PRIVATE_ISOLATED,
      },
      engine: rds.DatabaseClusterEngine.auroraPostgres({version: rds.AuroraPostgresEngineVersion.VER_10_14}),
      scaling: {autoPause: Duration.minutes(30)},
      backupRetention: Duration.days(1),
      deletionProtection: true,
      enableDataApi: true,
    });
this one works fine, thanks