Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am looking for an automated solution or script that can set the security group of my Amazon EC2 machines, so that only my current IP address can be the source of an RDP connection. I am looking for an automated solution, that works the following>

  1. I run my script or app that would get my IP address and update the security group that only my IP can be the source of an RDP connection
  2. Connect to my Amazon EC2 machine using EC2
  3. Do the work

Is there any application or script that I can use for this? Is this a good idea at all to secure my machines?

share|improve this question
up vote 3 down vote accepted

The tool you are looking for is called "boto", it's a python interface to the Amazon APIs, including security group management. This link takes you to examples of Python code that interacts with the security groups.

share|improve this answer
thanks for the anser. The link you have just posted will help me getting started. I accept your answer :) – gyurisc Sep 25 '11 at 13:13
What's the advantage of boto over the EC2 API tools?… – Dr. Edward Morbius Jul 12 '12 at 23:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.