From 9f0a5ab3fba8d64f6c3a6f5b0610e9c9714f6c51 Mon Sep 17 00:00:00 2001 From: Manuwai Korber Date: Wed, 17 Jan 2024 06:27:27 +0000 Subject: [PATCH] remove uneccessary VPC endpoints --- lib/shared/index.ts | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/lib/shared/index.ts b/lib/shared/index.ts index d33c1d2b..f9f11477 100644 --- a/lib/shared/index.ts +++ b/lib/shared/index.ts @@ -69,7 +69,7 @@ export class Shared extends Construct { } if ( - //typeof props.config.vpc?.createVpcEndpoints === "undefined" || + props.config.privateWebsite || props.config.vpc?.createVpcEndpoints === true ) { // Create a VPC endpoint for S3. @@ -181,36 +181,6 @@ export class Shared extends Construct { // privateDnsEnabled: true // }); // // } - - // // Create VPC Endpoint for CloudWatch Logs - // vpc.addInterfaceEndpoint("CloudWatchLogsEndpoint", { - // service: ec2.InterfaceVpcEndpointAwsService.CLOUDWATCH_LOGS, - // }); - - // // Create VPC Endpoint for STS - // vpc.addInterfaceEndpoint("STSEndpoint", { - // service: ec2.InterfaceVpcEndpointAwsService.STS, - // }); - - // // Create VPC Endpoint for Config - // vpc.addInterfaceEndpoint("ConfigEndpoint", { - // service: ec2.InterfaceVpcEndpointAwsService.CONFIG, - // }); - - // // Create VPC Endpoint for XRAY - // vpc.addInterfaceEndpoint("XRAYEndpoint", { - // service: ec2.InterfaceVpcEndpointAwsService.XRAY, - // }); - - // // Create VPC Endpoint for EC2_MESSAGES - // vpc.addInterfaceEndpoint("EC2_MESSAGESEndpoint", { - // service: ec2.InterfaceVpcEndpointAwsService.EC2_MESSAGES, - // }); - // // Create VPC Endpoint for SSM_MESSAGES - // vpc.addInterfaceEndpoint("SSM_MESSAGESEndpoint", { - // service: ec2.InterfaceVpcEndpointAwsService.SSM_MESSAGES, - // }); - }