First, we need to get Java. I chose the JDK 6 Update 7. Choose “Windows Offline Installation”.

Click “choose” to select a folder on your usb/bluetooth/thumb/sdhc/etc drive. For example, S:\jdk\

Now, download the EC2 Command-Line Tools from Amazon. Extract them to yourdrive:\ec2\ as shown. In the “cert” folder, place your PEM files (the ones prefixed with “cert” and “pk”).

Make sure to create an env.bat file like below. It makes things a lot easier.

set Path=S:/jdk/bin;%Path%
set JAVA_HOME=S:/jdk
set EC2_HOME=S:\ec2
set PATH=%PATH%;%EC2_HOME%\bin
set EC2_PRIVATE_KEY=S:\ec2\cert\pk-your_filename.pem
set EC2_CERT=S:\ec2\cert\cert-your_filename.pem
cmd
cls

That’s it! You can now run all those great commands anywhere!