Step 1: Launch a Windows Server Amazon EC2 Instance - AWS CodeDeploy

Step 1: Launch a Windows Server Amazon EC2 Instance

To deploy the Hello World application with CodeDeploy, you need an Amazon EC2 instance running Windows Server.

Follow the instructions in Create an Amazon EC2 Instance for CodeDeploy. When you are ready to assign an Amazon EC2 instance tag to the instance, be sure to specify the tag key of Name and the tag value of CodeDeployDemo. (If you specify a different tag key or tag value, then the instructions in Step 4: Deploy Your Hello World Application might produce unexpected results.)

After you've launched the Amazon EC2 instance, return to this page, and continue to the next section. Do not continue on to Create an Application with CodeDeploy as a next step.

Connect to Your Amazon EC2 Instance

After your Amazon EC2 instance is launched, follow these instructions to practice connecting to it.


In these instructions, we assume you are running Windows and the Windows Desktop Connection client application. For information, see Connecting to Your Windows Instance Using RDP. You might need to adapt these instructions for other operating systems or other RDP connection client applications.

  1. Sign in to the AWS Management Console and open the Amazon EC2 console at

  2. In the navigation pane, under Instances, choose Instances.

  3. Browse to and choose your Windows Server instance in the list.

  4. Choose Connect.

  5. Choose Get Password, and then choose Choose File.

  6. Browse to and choose the Amazon EC2 instance key pair file associated with the Windows Server Amazon EC2 instance, and then choose Open.

  7. Choose Decrypt Password. Make a note of the password that is displayed. You need it in step 10.

  8. Choose Download Remote Desktop File, and then open the file.

  9. If you are prompted to connect even though the publisher of the remote connection can't be identified, proceed.

  10. Type the password you noted in step 7, and then proceed. (If your RDP connection client application prompts you for a user name, type Administrator.)

  11. If you are prompted to connect even though the identity of the remote computer cannot be verified, proceed.

  12. After you are connected, the desktop of the Amazon EC2 instance running Windows Server is displayed.

  13. You can now disconnect from the Amazon EC2 instance.


    Do not stop or terminate the instance. Otherwise, CodeDeploy can't deploy to it.

Add an Inbound Rule That Allows HTTP Traffic to Your Windows Server Amazon EC2 Instance

The next step confirms your Amazon EC2 instance has an open HTTP port so you can see the deployed webpage on your Windows Server Amazon EC2 instance in a browser.

  1. Sign in to the AWS Management Console and open the Amazon EC2 console at

  2. Choose Instances, and then choose your instance.

  3. On the Description tab, under Security groups, choose view inbound rules.

    You should see a list of rules in your security group like the following:

    Security Groups associated with i-1234567890abcdef0 Ports Protocol Source launch-wizard-N 22 tcp ✔
  4. Under Security groups, choose the security group for your Amazon EC2 instance. It might be named launch-wizard-N. The N in the name is a number assigned to your security group when your instance was created.

    Choose the Inbound tab. If the security group for your instance is configured correctly, you should see a rule with the following values:

    • Type: HTTP

    • Protocol: TCP

    • Port Range: 80

    • Source:

  5. If you do not see a rule with these values, use the procedures in Adding Rules to a Security Group to add them to a new security rule.