- Gets all windows instances for an environment in AWS
- Gets the windows password and puts them into KeyChain
- Setups ssh tunnel sessions through the public bastion instance
- Creates RDP configs and places them into Microsoft Remote Desktop
Use bundler to install dependencies within Gemfile
bundle install
./aws-rdp-tunneller.rb -r us-west-2 -e dev -k devkey.pem
AWS Region (required)
-r --region us-west-2
Environment tag on instances (required)
-e --environment dev (required)
Key used to launch the instance (required)
-k --private-key devkey.pem
SSH user used to connect to the bastion to setup the tunnel. (optional) if defined in your ssh config
-u --ssh-user ec2-user
AWS Profile (optional)
-p --profile dev
Name of bastion host (optional, defaults to "<environment_name>-bastion-xx")
-bn --bastion-name
Get instance with role tag like *value*
-rl --role
OSX only Microsoft Remote Desktop -v 8.0.18
gem install aws-sdk
gem install CFPropertyList
cp ~/Library/Containers/com.microsoft.rdc.mac/Data/Library/Preferences/com.microsoft.rdc.mac.plist ~/backups/
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1490675007000",
"Effect": "Allow",
"Action": [
"ec2:GetPasswordData",
"ec2:Describe*"
],
"Resource": [
"*"
]
}
]
}