Skip to content

Commit

Permalink
Add initial README (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
plumdog authored Jan 23, 2024
1 parent ece93a3 commit 16af169
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,31 @@
# ec2-bastion-cdk
Create bastion instances backed by an ASG

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

```typescript
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)),
});

0 comments on commit 16af169

Please sign in to comment.