Skip to content

Commit

Permalink
dep updates (#319)
Browse files Browse the repository at this point in the history
* dep updates

* hardcode latest amazonlinux2 machine image
  • Loading branch information
snowiow authored Apr 21, 2023
1 parent b992281 commit 85aea5c
Show file tree
Hide file tree
Showing 5 changed files with 345 additions and 15,866 deletions.
3 changes: 2 additions & 1 deletion lib/bastion-host-forward.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/

import { Fn } from 'aws-cdk-lib';
import { BastionHostLinux, SecurityGroup, UserData } from 'aws-cdk-lib/aws-ec2';
import { BastionHostLinux, MachineImage, SecurityGroup, UserData } from 'aws-cdk-lib/aws-ec2';
import type { CfnInstance, ISecurityGroup } from 'aws-cdk-lib/aws-ec2';
import { Construct } from 'constructs';

Expand Down Expand Up @@ -98,6 +98,7 @@ export class BastionHostForward extends Construct {
this.bastionHost = new BastionHostLinux(this, 'BastionHost', {
requireImdsv2: true,
instanceName: props.name ?? 'BastionHost',
machineImage: MachineImage.latestAmazonLinux2(),
vpc: props.vpc,
securityGroup: this.securityGroup,
});
Expand Down
Loading

0 comments on commit 85aea5c

Please sign in to comment.