This page describes how to configure Amazon EC2 Windows Instance using the terminal. Please note that using a GUI tool may be more convenient. 

First download Amazon EC2 Command Line Tools.

Find publicly available Windows image.

$ec2-describe-images -o amazon | grep windows

Run a selected image.

$ec2-run-instances ami-xxxxxxxx -k kp-xxxxxxxxxx -g gp-xxxxxxxxx -t m1.xxxxxx
ami-xxxxxxxx: image name
-k: key pair name (for more information refer to command line reference - ec2-add-keypair)
-g: network security group (for more information refer to command line reference - ec2-add-group)
-t: machine type (error will occur if improperly set - e.g. some instances using x86_64 will not work with m1.small)

Check whether the instance is up.

$ec2-get-console-output i-xxxxxxxxx
i-xxxxxxxxx: instance id (this is returned when ec2-run-instances is called)
(It will take longer than you would normally expect to boot the image)

Get remote desktop password.

$ec2-get-password -k rsa-key-pair i-xxxxxxxxx
-k: file containing private key (for more information refer to command line reference - ec2-add-keypair)

Authorize remote desktop port usage.

$ec2-authorize gp-xxxxxxxxx -p 3389
gp-xxxxxxxxx: network security group
-p: port number. 3389 is the remote desktop port.


Now you are done starting and configuring the windows instance!

Access the windows server instance using remote desktop on your computer.

First, find out the domain name of the instance.

$ec2-describe-instances
This will return information about the active instances. Domain name corresponding to the instance id can be found. 

Use the following information for your remote desktop application.

Use the domain name from the previous step: "ec2-xxxxxxxxxxxxxx.amazonaws.com"
Login name: "\Administrator" (if your computer is in a network domain, don't forget "\")
Password: xxxxxxxx (the one you got from ec2-get-password)

Once you finished accessing the machine, terminate the instance.

$ec2-terminate-instances i-xxxxxxxxx
i-xxxxxxxxx: instance id


References:

저작자 표시 비영리 변경 금지

'Technical Information' 카테고리의 다른 글

Starting and Accessing Amazon EC2 Windows Instance  (2) 2010/12/21
Posted by jyong
◀ PREV : [1] : [2] : [3] : [4] : [5] : [6] : [7] : ... [156] : NEXT ▶


분류 전체보기 (156)
Notice (3)
Life Log (136)
Technical Information (17)

«   2012/02   »
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29      

글 보관함

Total : 42,008
Today : 27 Yesterday : 43