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.

Note

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 https://console.aws.amazon.com/ec2/.

  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.

    Warning

    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 https://console.aws.amazon.com/ec2/.

  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 0.0.0.0/0 ✔
  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: 0.0.0.0/0

  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.