Skip to content

Commit 5d2fec2

Browse files
committed
Add export for VPC Endpoint ID
Signed-off-by: Connor Avery <[email protected]>
1 parent bbd2234 commit 5d2fec2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/cdk/stacks/VpcResourcesStack.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,12 @@ export class VpcResourcesStack extends Stack {
170170

171171
endpoint.connections.allowFrom(Peer.ipv4(this.vpc.privateSubnets[0].ipv4CidrBlock),
172172
endpoint.connections.defaultPort!)
173+
174+
new CfnOutput(this, `PrivateInterfaceEndpoint-${name}`, {
175+
value: endpoint.vpcEndpointId,
176+
description: "Private interface endpoints for the VPC",
177+
exportName: `${this.stackName}:PrivateInterfaceEndpoint-${name}`
178+
})
173179
}
174180

175181
private addGatewayEndpoint(name: string, awsService: InterfaceVpcEndpointAwsService): void {

0 commit comments

Comments
 (0)