I hereby claim:
- I am console32 on github.
- I am console32 (https://keybase.io/console32) on keybase.
- I have a public key ASBATkXePsgpcqpOXqgF6AK-oVrya7ZZMPYEjCKnXwc__Qo
To claim this, I am signing this object:
constructor(scope: cdk.Construct, id: string, props: BastionHostProps) { | |
super(scope, id) | |
const externalSshSG = this.createAllowExternSshSG(props.vpc, props.peers) | |
this.internalSshSecurityGroup = this.createAllowInternalSshSG(props.vpc) | |
const snsTopic = new sns.Topic(this, 'autoscaling-notifications') | |
const externalIp = new ec2.CfnEIP(this, 'bastionhost-ip') | |
this.publicIp = externalIp.ref | |
this.createLambda(snsTopic, externalIp.ref) |
readonly internalSshSecurityGroup: ec2.ISecurityGroup | |
readonly publicIp: string |
const network = new ec2.Vpc(this, 'main', { | |
maxAZs: 1 | |
}) | |
const bastionHost = new vlib.BastionHost(this, 'bastionHost', { | |
image: new ec2.AmazonLinuxImage(), | |
peers: [ec2.Peer.anyIpv4()], | |
vpc: network, | |
keyName: 'raphaels-key' | |
}) |
aws ssm start-session --target INSTANCE_ID |
aws ssm start-session --target INSTANCE_ID | |
--document-name AWS-StartPortForwardingSession | |
--parameters '{"portNumber":["'3389'"], "localPortNumber":["'50001'"]}' |
alias instances='aws ec2 describe-instances \ | |
--query "Reservations[*].Instances[*]. \ | |
{ \ | |
name: Tags[?Key=='\''Name'\''] |[0].Value, \ | |
instance_id: InstanceId, \ | |
ip_address: PrivateIpAddress, \ | |
state: State.Name \ | |
}" \ | |
--output table' |
I hereby claim:
To claim this, I am signing this object:
[alias] | |
lsa = "!git -P log --graph --decorate --format=\"%C(yellow)%h %Cblue%ad %Cgreen%<(8,trunc)%aN%C(auto)%d %Creset%<(80,trunc)%s\" --date=short --all -n 10" | |
ls = "!git -P log --graph --decorate --format=\"%C(yellow)%h %Cblue%ad %Cgreen%<(8,trunc)%aN%C(auto)%d %Creset%<(80,trunc)%s\" --date=short -n 10" | |
lola = log --graph --decorate --format=\"%C(yellow)%h %Cblue%ad %Cgreen%<(8,trunc)%aN%C(auto)%d %Creset%<(80,trunc)%s\" --date=short --all | |
lol = log --graph --decorate --format=\"%C(yellow)%h %Cblue%ad %Cgreen%<(8,trunc)%aN%C(auto)%d %Creset%<(80,trunc)%s\" --date=short |
[alias] | |
lsa = "!git -P log --graph --decorate --format=\"%C(yellow)%h %Cblue%ad %Cgreen%<(8,trunc)%aN%C(auto)%d %Creset%<(80,trunc)%s\" --date=short --all -n 10" | |
ls = "!git -P log --graph --decorate --format=\"%C(yellow)%h %Cblue%ad %Cgreen%<(8,trunc)%aN%C(auto)%d %Creset%<(80,trunc)%s\" --date=short -n 10" | |
lola = log --graph --decorate --format=\"%C(yellow)%h %Cblue%ad %Cgreen%<(8,trunc)%aN%C(auto)%d %Creset%<(80,trunc)%s\" --date=short --all | |
lol = log --graph --decorate --format=\"%C(yellow)%h %Cblue%ad %Cgreen%<(8,trunc)%aN%C(auto)%d %Creset%<(80,trunc)%s\" --date=short |
[alias] | |
ls = log --graph --decorate --format=\"%C(yellow)%h %Cblue%ad %Cgreen%<(8,trunc)%aN%C(auto)%d %Creset%<(80,trunc)%s\" --date=short -n 10 | |
lsa = log --graph --decorate --format=\"%C(yellow)%h %Cblue%ad %Cgreen%<(8,trunc)%aN%C(auto)%d %Creset%<(80,trunc)%s\" --date=short --all -n 10 | |
lola = log --graph --decorate --format=\"%C(yellow)%h %Cblue%ad %Cgreen%<(8,trunc)%aN%C(auto)%d %Creset%<(80,trunc)%s\" --date=short --all | |
lol = log --graph --decorate --format=\"%C(yellow)%h %Cblue%ad %Cgreen%<(8,trunc)%aN%C(auto)%d %Creset%<(80,trunc)%s\" --date=short |