ec2-bastion-cdk
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

ec2-bastion-cdk

Docs: https://isotoma.github.io/ec2-bastion-cdk/

NPM: https://www.npmjs.com/package/ec2-bastion-cdk

Source: https://github.com/isotoma/ec2-bastion-cdk

Example

import { Ec2HaBastion } from 'ec2-bastion-cdk';

// ...

const bastion = new Ec2HaBastion(this, 'Bastion', {
    vpc: myVpc,
    allowedCidrs: [
        '1.2.3.999',
    ],
    publicKeys: [
        'ssh-ed225519 Abcdef123Xyz me@host',
    ],
    allowShell: true,
});

new route53.ARecord(this, 'BastionRecord', {
    recordName: 'mybastion',
    zone: myZone,
    target: route53.RecordTarget,fromAlias(new route53Targets.LoadBalancerTarget(bastion.networkLoadBalancer)),
});

Readme

Keywords

Package Sidebar

Install

npm i ec2-bastion-cdk

Weekly Downloads

69

Version

1.0.3

License

MIT

Unpacked Size

27 kB

Total Files

4

Last publish

Collaborators

  • isotoma-ci