alias demo-rds-connect="ssh -M -S pops-rds-ctrl-socket -fnNT -L 3307:popsdemo.cv47gypka7vd.us-east-1.rds.amazonaws.com:3306 -i ~/.ssh/keys/podium-ec2-keypair.pem ec2-user@35.153.126.149 pops@demo.com ; mysql --login-path=demo-podium podium_empty --prompt=\"\u@popsdemo> \""
alias demo-rds-check-tunnel="ssh -S pops-rds-ctrl-socket -O check pops@demo.com"
alias demo-rds-kill-tunnel="ssh -S pops-rds-ctrl-socket -O exit pops@demo.com"
```
[^1]:Note that the '--query' parameter to the `aws ec2 describe-instances` call is based on JMESPath query http://jmespath.org/specification.html#. This query is extracting the instance state, instance-id, and name. The name is extracted from the value of a 'tag' added to the EC2 instances. If your instances have not been tagged, the name will not appear in the output.
[^1]:Note that the '--query' parameter to the `aws ec2 describe-instances` call is based on JMESPath query http://jmespath.org/specification.html#. This query is extracting the instance state, instance-id, and name. The name is extracted from the value of a 'tag' added to the EC2 instances. If your instances have not been tagged, the name will not appear in the output.