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, - // }); - }