Skip to content

Commit

Permalink
chore: fix serviceEndpoint import
Browse files Browse the repository at this point in the history
  • Loading branch information
Erdem Ayyildiz committed Oct 1, 2024
1 parent c158389 commit e5f073b
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions src/patterns/gen-ai/aws-text-to-sql/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ import {
} from '../../../common/helpers/utils';
import * as vpcHelper from '../../../common/helpers/vpc-helper';
import { DockerLambdaCustomProps } from '../../../common/props/DockerLambdaCustomProps';
import { ServiceEndpointTypeEnum } from '../../../patterns/gen-ai/aws-rag-appsync-stepfn-kendra/types';


export enum DbName {
Expand Down Expand Up @@ -282,17 +281,11 @@ export class TextToSql extends BaseClass {
}

// add VPC endpoints for the compute environment
vpcHelper.AddAwsServiceEndpoint(
this,
this.vpc,
ServiceEndpointTypeEnum.EVENTS,
);
vpcHelper.AddAwsServiceEndpoint(
this,
this.vpc,
ServiceEndpointTypeEnum.STEP_FUNCTIONS,
);
vpcHelper.AddAwsServiceEndpoint(this, this.vpc, ServiceEndpointTypeEnum.S3);
vpcHelper.AddAwsServiceEndpoint(this, this.vpc,
[vpcHelper.ServiceEndpointTypeEnum.S3,
vpcHelper.ServiceEndpointTypeEnum.STEP_FUNCTIONS,
vpcHelper.ServiceEndpointTypeEnum.EVENTS]);


const dbPort = props.dbPort ? props.dbPort : 1534;

Expand Down

0 comments on commit e5f073b

Please sign in to comment.