Skip to content

Creating and Connect to an EC2 Instance

Create a Windows EC2 Instance

Navigate to the EC2 service.

Navigate to the EC2 service

Select "launch instance" to create a new EC2 instance.

Select launch instance

Most options here can be left as their defaults. Here are the ones that need selected/changing:

  1. Select "Windows" from the Quick Start options.

    select windows quick start

  2. We need to create a new key pair: Select "Create new key pair".

    Select create new key pair

  3. Enter a name for your key pair, leave the key pair type as RSA and the file format as .pem. This will download a key file to you PC which you will use to connect to the instance.

    Create new key pair

The network should be in the same VPC as your cluster. Select create a new security group that allows connections from anywhere. - This is only for the purposes of the MVP. For customising see this page on security groups.

EC2 network

Adding your new security group to you EC2

Now we need to add the security group of your cluster to your EC2.

Navigate to EC2 service.

Navigate to EC2

Select "Instances (running)".

Select Instance running

Open your EC2 Instance.

Open EC2 instance

Select "Actions", "Security" then "Change security groups".

Select change security groups

Search and select the security group that is on your clusters, select "Add security group" then "save".

Add security group

You should now have two security groups, one from the launch wizard, and the one you added manually that is also attached to your clusters.

security group example

Connecting to your EC2 Instance

Open your EC2 Instance.

Open EC2 instance

Select connect.

Select connect

Get your password

this only needs to be done once. Once you have this password you can skip this step.

Select get password.

Get password

Upload the .pem that was saved to you PC earlier (alternativly you can just paste the contents of this file in the text box).

upload .pem file

This will return the value of your password. Keep a note of this password as you will need it to connect your EC2.

Connect

Download the remote desktop file.

dowload remote desktop file

Run this file and enter the password you recieved above when promted. You should now be connected to the Windows remote desktop.