Skip to content

Commit

Permalink
Use only private subnets
Browse files Browse the repository at this point in the history
  • Loading branch information
dfkunstler authored and bigadsoleiman committed Jan 10, 2024
1 parent a170fa8 commit 47e178f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rag-engines/opensearch-vector/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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],
});
Expand Down

0 comments on commit 47e178f

Please sign in to comment.