TheDeveloperBlog.com

Home | Contact Us

C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML

How to create amazon EC2 Window Instances

How to create amazon EC2 Window Instances with virtualization techniques, cloud service models, IAAS, PAAS, SAAS, Amazon EC2, type of cloud computing like public, private and hybrid for beginners and professionals.

<< Back to HOW

How to create amazon EC2 window instances:


Launch a Windows Instance

You can launch a Windows instance using the AWS Management Console as described following. An instance is a virtual server in the AWS cloud. With the help of Amazon EC2, you can set up and configure the operating system and applications that run on your instance.

To launch an instance

  1. Sign in to the AWS Console and open the Amazon EC2 console.
  2. From the navigation bar, select the region for the instance. Here we are going to choose Singapore data region. Otherwise, this choice is important because some Amazon EC2 resources can be shared between regions, while others can't be.
  3. Cloud How to create 1
  4. On console dashboard, click Launch Instance.
  5. Cloud How to create 2
  6. To Choose an Amazon Machine Image (AMI) page displays a list of basic configurations called Amazon Machine Images (AMIs) that serve as templates for your instance. Select the 64-bit version of Microsoft Windows Server 2008 R2. Notice that this configuration is marked as Free tier eligible.
  7. Cloud How to create 3
  8. To Choose an Instance Type page, you can select the hardware configuration for your instance. The t1.micro instance will be selected by default. Click Review and Launch to let the wizard complete or not with other configuration settings for you, so you can get started quickly.
  9. Cloud How to create 4
  10. To Review Instance Launch page, you need to go to the settings for your instance.
  11. Under Security Groups, you will see that the wizard will be created and selected a security group for you. The security group includes basic firewall rules that will enable you to connect to your instance. For a Windows instance, you connect through Remote Desktop Protocol (RDP) on port 3389.

    If you have an existing security group then you need to use by clicking Edit security groups, and select your group on the Configure Security Group page. When done, click Review and Launch to return to the Review Instance Launch page.

    Cloud How to create 5
  12. Click on Launch.
  13. Cloud How to create 6
  14. In the Select an existing key pair or create a new key pair dialog box, you can select Choose an existing key pair, to select a key pair you already created.
  15. Alternatively, you can create a new key pair. Select Create a new key pair, enter a name for the key pair, and then click Download Key Pair.

    This is the only chance for you to save the private key file, so be sure to download it. Save the private key file in a safe place. You'll need to provide the name of your key pair when you launch an instance and the corresponding private key each time you connect to the instance.

    Cloud How to create 7

    It will be downloaded in the form of .pem file and save it for future purpose.

    Attention

    Don't select the Proceed without a key pair option. If you launch your instance without a key pair, then you can't connect to it.

    When you are ready, select the acknowledgement check box, and then click Launch Instances.

  16. A confirmation page will open to know that your instance is launching. Click View Instances to close the confirmation page and return to the console.
  17. Cloud How to create 8 Cloud How to create 9
  18. On the Instances page, you can view the status of the launch. It takes a short time for an instance to launch. When you launch an instance, its initial state is pending. After the instance starts, its state changes to running and it receives a public DNS name.
  19. Cloud How to create 10
  20. Record the public DNS name for your instance because you'll need it for the next step.
  21. (Optional) After your instance is launched, you can view its security group rules. From the Instances page, select the instance. In the Description tab, find Security groups and click view rules.
  22. Cloud How to create 11

    As you can see, if you used the security group the wizard created for you, it contains one rule that allows RDP traffic from any IP source to port 3389. If you launch a Windows instance running IIS and SQL, the wizard creates a security group that contains additional rules to allow traffic to port 80 for HTTP (for IIS) and port 1433 for MS SQL


Connect to Your Windows Instance

To connect to a Windows instance, you must retrieve the initial administrator password and then specify this password when you connect to your instance using Remote Desktop.

Note:- Windows instances are limited to two simultaneous remote connections at one time. If you attempt a third connection, an error will occur. For more information, see Configure the Number of Simultaneous Remote Connections Allowed for a Connection.

To connect to your Windows instance

  1. In the Amazon EC2 console, select the instance, and then click Connect.
  2. Cloud How to create 12
  3. In the Connect To Your Instance dialog box, click Get Password (it will take a few minutes after the instance is launched before the password is available).
  4. Cloud How to create 13
  5. Click Browse and navigate to the private key file you created when you launched the instance. Select the file and click Open to copy the entire contents of the file into contents box.
  6. Cloud How to create 14
  7. Click Decrypt Password. The console displays the default administrator password for the instance in the Connect To Your Instance dialog box, replacing the link to Get Password shown previously with the actual password.
  8. Cloud How to create 15
  9. Click Download Remote Desktop File. Your browser prompts you to either open or save the .rdp file. Either option is fine. When you have finished, you can click Close to dismiss the Connect To Your Instance dialog box.
  10. Cloud How to create 16
  11. If you opened the .rdp file, you will see the Remote Desktop Connection dialog box. If you saved the .rdp file then navigate to your downloads directory, and double-click the .rdp file to display the dialog box. You will get a warning that the publisher of the remote connection is unknown. Click Connect to connect to your instance. You may get a warning that the security certificate could not be authenticated. Click Yes to continue.
  12. Cloud How to create 17
  13. Log in to the instance as prompted, using the default Administrator account and the default administrator password that you recorded or copied previously.
  14. Cloud How to create 18

After you connect, we recommend that you do the following:

  • Change the Administrator password from the default value. You change the password while logged on to the instance itself, just as you would on any other Windows Server.
  • Create another user account with administrator privileges on the instance. Another account with administrator privileges is a safeguard if you forget the Administrator password or have a problem with the Administrator account.
  • Cloud How to create 19 Cloud How to create 20 Cloud How to create 21 Cloud How to create 22

Now how can you share your local drives with the Singapore or others data center?

Now start the RDP (Remote Desktop Service) from the Windows machine as shown below. Run themstsc command from the Run menu.

Cloud How to create 23

The Remote Desktop Connection window is displayed.

Cloud How to create 24

Click the Options button and then select the Local Resources tab.

Cloud How to create 25 Cloud How to create 26

In the Remote audio area, select Settings to configure the audio settings of your instance.

Cloud How to create 27

In the Local Resource tab, in the Local devices and resources area, click More. All the plug and play devices that can be available through network in the AWS EC2 server instance are listed, as well as the disk drives.

Cloud How to create 28 Cloud How to create 29

Click Connect.

Cloud How to create 30 Cloud How to create 31 Cloud How to create 32

Now we can install anything in the Singapore datacenter from our local drives.






Related Links:


Related Links

Adjectives Ado Ai Android Angular Antonyms Apache Articles Asp Autocad Automata Aws Azure Basic Binary Bitcoin Blockchain C Cassandra Change Coa Computer Control Cpp Create Creating C-Sharp Cyber Daa Data Dbms Deletion Devops Difference Discrete Es6 Ethical Examples Features Firebase Flutter Fs Git Go Hbase History Hive Hiveql How Html Idioms Insertion Installing Ios Java Joomla Js Kafka Kali Laravel Logical Machine Matlab Matrix Mongodb Mysql One Opencv Oracle Ordering Os Pandas Php Pig Pl Postgresql Powershell Prepositions Program Python React Ruby Scala Selecting Selenium Sentence Seo Sharepoint Software Spellings Spotting Spring Sql Sqlite Sqoop Svn Swift Synonyms Talend Testng Types Uml Unity Vbnet Verbal Webdriver What Wpf