Create CodeDeploy application and Deployment Group

In this section, you will use the CodeDeploy console to create an application and the Deployment Group as the target for CodeDeploy to deploy the software into.

  1. Access to CodeDeploy.
  2. Select Create application.

CreateCodeDeployApp

  1. In Create application page, enter idevelopDemo for Application name
  2. Select EC2/On-premises for Compute Platform section.
  3. Select Create application

CreateCodeDeployApp

  1. Select Create deployment group

CreateCodeDeployApp

  1. Enter HeartbeatInstances for Deployment group name
  2. In Service role ARN section, enter CodeDeployServiceRole and select full ARN of role from list.

CreateCodeDeployApp

  1. Scroll down to Environment configuration section.
  • Select Amazon EC2 Instances tab.
  • In Tab group 1 section, select Name for Key.
  • Chọn idevelop cho mục Value

CreateCodeDeployApp

  1. In Matching instances section, you will see 2 instance, those instances are eligible to be a target for this Deployment Group, because the Name tag is idevelop.
  2. Select Create Deployment Group

CreateCodeDeployApp

CodeDeploy application and Deployment Group will be created. You are now ready to deploy the software to the virtual machines.