@@ -41,7 +41,7 @@ import {
41
41
} from '../../../common/helpers/kendra-helper' ;
42
42
import { buildDockerLambdaFunction } from '../../../common/helpers/lambda-builder-helper' ;
43
43
import { lambdaMemorySizeLimiter } from '../../../common/helpers/utils' ;
44
- import { AddAwsServiceEndpoint , buildVpc , createDefaultIsolatedVpcProps , ServiceEndpointTypeEnum } from '../../../common/helpers/vpc-helper' ;
44
+ import { AddAwsServiceEndpoint , buildVpc , createDefaultVpcProps , ServiceEndpointTypeEnum } from '../../../common/helpers/vpc-helper' ;
45
45
import { DockerLambdaCustomProps } from '../../../common/props/DockerLambdaCustomProps' ;
46
46
47
47
/**
@@ -243,7 +243,7 @@ export class RagAppsyncStepfnKendra extends BaseClass {
243
243
244
244
if ( props . deployVpc || props . existingVpc ) {
245
245
this . vpc = buildVpc ( scope , {
246
- defaultVpcProps : createDefaultIsolatedVpcProps ( ) ,
246
+ defaultVpcProps : createDefaultVpcProps ( ) ,
247
247
existingVpc : props . existingVpc ,
248
248
userVpcProps : props . vpcProps ,
249
249
constructVpcProps : {
@@ -396,7 +396,7 @@ export class RagAppsyncStepfnKendra extends BaseClass {
396
396
description : 'Lambda function for pre-signed links generation' ,
397
397
vpc : this . vpc ,
398
398
tracing : this . lambdaTracing ,
399
- vpcSubnets : { subnetType : ec2 . SubnetType . PRIVATE_ISOLATED } ,
399
+ vpcSubnets : { subnetType : ec2 . SubnetType . PRIVATE_WITH_EGRESS } ,
400
400
securityGroups : [ this . securityGroup ] ,
401
401
memorySize : lambdaMemorySizeLimiter ( this , 1_769 ) ,
402
402
timeout : Duration . minutes ( 15 ) ,
@@ -419,7 +419,7 @@ export class RagAppsyncStepfnKendra extends BaseClass {
419
419
description : 'Lambda function for Kendra sync job starting' ,
420
420
vpc : this . vpc ,
421
421
tracing : this . lambdaTracing ,
422
- vpcSubnets : { subnetType : ec2 . SubnetType . PRIVATE_ISOLATED } ,
422
+ vpcSubnets : { subnetType : ec2 . SubnetType . PRIVATE_WITH_EGRESS } ,
423
423
securityGroups : [ this . securityGroup ] ,
424
424
memorySize : lambdaMemorySizeLimiter ( this , 1_769 ) ,
425
425
timeout : Duration . minutes ( 15 ) ,
@@ -442,7 +442,7 @@ export class RagAppsyncStepfnKendra extends BaseClass {
442
442
description : 'Lambda function for getting kendra sync status' ,
443
443
vpc : this . vpc ,
444
444
tracing : this . lambdaTracing ,
445
- vpcSubnets : { subnetType : ec2 . SubnetType . PRIVATE_ISOLATED } ,
445
+ vpcSubnets : { subnetType : ec2 . SubnetType . PRIVATE_WITH_EGRESS } ,
446
446
securityGroups : [ this . securityGroup ] ,
447
447
memorySize : lambdaMemorySizeLimiter ( this , 1_769 ) ,
448
448
timeout : Duration . minutes ( 15 ) ,
@@ -464,7 +464,7 @@ export class RagAppsyncStepfnKendra extends BaseClass {
464
464
description : 'Lambda function for Kendra job status updates' ,
465
465
vpc : this . vpc ,
466
466
tracing : this . lambdaTracing ,
467
- vpcSubnets : { subnetType : ec2 . SubnetType . PRIVATE_ISOLATED } ,
467
+ vpcSubnets : { subnetType : ec2 . SubnetType . PRIVATE_WITH_EGRESS } ,
468
468
securityGroups : [ this . securityGroup ] ,
469
469
memorySize : lambdaMemorySizeLimiter ( this , 1_769 ) ,
470
470
timeout : Duration . minutes ( 15 ) ,
@@ -497,7 +497,7 @@ export class RagAppsyncStepfnKendra extends BaseClass {
497
497
description : 'Lambda for starting execution' ,
498
498
vpc : this . vpc ,
499
499
tracing : this . lambdaTracing ,
500
- vpcSubnets : { subnetType : ec2 . SubnetType . PRIVATE_ISOLATED } ,
500
+ vpcSubnets : { subnetType : ec2 . SubnetType . PRIVATE_WITH_EGRESS } ,
501
501
securityGroups : [ this . securityGroup ] ,
502
502
memorySize : lambdaMemorySizeLimiter ( this , 1_769 ) ,
503
503
timeout : Duration . minutes ( 15 ) ,
0 commit comments