Showing posts with label instance. Show all posts
Showing posts with label instance. Show all posts

Thursday, 4 February 2016

SSH config: command for bastion server proxying


Host 51.21.21.11
  IdentityFile ~/.ssh/mykey.pem
  User ec2-user
  ForwardAgent yes

Host 10.*
  ProxyCommand ssh ec2-user@51.21.21.11 nc %h 22
  User ec2-user
  IdentityFile ~/.ssh/mykey.pem
  ForwardAgent yes

Put your ssh public key in ~/.ssh/authorized_keys along the path.

Friday, 6 December 2013

aws ec2 cli filter by tag name and value

  1. aws ec2 describe-instances --filter Name=tag:Name,Values=ADS-prod-ads
The horrible syntax of "and" filters:
  1.  aws ec2 describe-instances 
    1. --filter 
      1. '{"Name":"tag:backup","Values":["yes"]}' 
      2. '{"Name":"instance-state-name","Values":["running"]}' 
    2. non-breakout view below
aws ec2 describe-instances --filter '{"Name":"tag:backup","Values":["yes"]}' '{"Name":"instance-state-name","Values":["running"]}'

Interview questions: 2020-12

Terraform provider vs provisioner Load balancing Network Load Balancer vs Application Load Balancer  Networking Layer 1 vs Layer 4 haproxy u...