Skip to content

Commit 4310f1a

Browse files
committed
add s3 endpoint
1 parent 271b181 commit 4310f1a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/cdk/stacks/VpcResourcesStack.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
import {
1111
CfnSubnet,
1212
FlowLogDestination,
13+
GatewayVpcEndpointAwsService,
1314
InterfaceVpcEndpoint,
1415
InterfaceVpcEndpointAwsService,
1516
IpAddresses,
@@ -97,11 +98,15 @@ export class VpcResourcesStack extends Stack {
9798
this.addInterfaceEndpoint("ECRDockerEndpoint", InterfaceVpcEndpointAwsService.ECR_DOCKER)
9899
this.addInterfaceEndpoint("ECREndpoint", InterfaceVpcEndpointAwsService.ECR)
99100
this.addInterfaceEndpoint("SecretManagerEndpoint", InterfaceVpcEndpointAwsService.SECRETS_MANAGER)
100-
this.addInterfaceEndpoint("CloudWatchEndpoint", InterfaceVpcEndpointAwsService.CLOUDWATCH)
101+
this.addInterfaceEndpoint("CloudWatchEndpoint", InterfaceVpcEndpointAwsService.CLOUDWATCH_MONITORING)
101102
this.addInterfaceEndpoint("CloudWatchLogsEndpoint", InterfaceVpcEndpointAwsService.CLOUDWATCH_LOGS)
102103
this.addInterfaceEndpoint("CloudWatchEventsEndpoint", InterfaceVpcEndpointAwsService.EVENTBRIDGE)
103104
this.addInterfaceEndpoint("SSMEndpoint", InterfaceVpcEndpointAwsService.SSM)
104105

106+
vpc.addGatewayEndpoint("S3Endpoint", {
107+
service: GatewayVpcEndpointAwsService.S3
108+
})
109+
105110
//Outputs
106111

107112
//Exports

0 commit comments

Comments
 (0)