Skip to content

Commit f77475b

Browse files
yveochHawxy
andauthored
feat: Change the type of vpc to IVPC (#13)
* feat: Change the type of vpc to IVPC This will allow users to input a VPC created in a different stack than the one the bastion is hosted in. --------- Co-authored-by: JT <Hawxy@users.noreply.github.com>
1 parent 4fc5e5a commit f77475b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

API.md

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { CfnOutput, Fn, Stack, Token } from 'aws-cdk-lib';
2-
import { BastionHostLinux, CloudFormationInit, InitCommand, ISecurityGroup, Peer, Port, SubnetSelection, Vpc, InstanceType, SubnetType, InitElement, CfnRoute } from 'aws-cdk-lib/aws-ec2';
2+
import { BastionHostLinux, CloudFormationInit, InitCommand, ISecurityGroup, Peer, Port, SubnetSelection, IVpc, InstanceType, SubnetType, InitElement, CfnRoute } from 'aws-cdk-lib/aws-ec2';
33
import { ISecret } from 'aws-cdk-lib/aws-secretsmanager';
44
import { Construct } from 'constructs';
55

@@ -31,7 +31,7 @@ export interface TailscaleBastionProps {
3131
/**
3232
* VPC to launch the instance in.
3333
*/
34-
readonly vpc: Vpc;
34+
readonly vpc: IVpc;
3535
/**
3636
* Credential settings for the tailscale auth key. One type must be used.
3737
* Ephemeral keys are recommended.

0 commit comments

Comments
 (0)