diff --git a/lib/rag-engines/opensearch-vector/index.ts b/lib/rag-engines/opensearch-vector/index.ts index 525a61c1d..7577c8359 100644 --- a/lib/rag-engines/opensearch-vector/index.ts +++ b/lib/rag-engines/opensearch-vector/index.ts @@ -45,7 +45,7 @@ export class OpenSearchVector extends Construct { const cfnVpcEndpoint = new oss.CfnVpcEndpoint(this, "VpcEndpoint", { name: Utils.getName(props.config, "genaichatbot-vpce"), // Make sure the subnets are not in the same availability zone. - subnetIds: props.shared.vpc.selectSubnets({onePerAz: true}).subnetIds, + subnetIds: props.shared.vpc.selectSubnets({onePerAz: true, subnetType: ec2.SubnetType.PRIVATE_ISOLATED}).subnetIds, vpcId: props.shared.vpc.vpcId, securityGroupIds: [sg.securityGroupId], });