CodeDeploy Lab

In this lesson you will create the CodeDeploy resources. This includes creating an Application container, and a Deployment Group. Creating these two things will allow you to deploy software through CodeDeploy to your EC2 instances.

Step 1: Create a Deployment Group

  1. Open the CodeDeploy Console

  2. Click on the Create New Application button, and use these settings on the screen that follows:

    1. Application Name: Alpha

    2. Deployment Group Name: AppServer

    3. Add Instances section configure as follows:

      1. Tag Type: Autoscaling Group

      2. Key: <your_name>-ASG1

  1. Deployment Configuration section configure as follows:

    1. Deployment Config: CodeDeploymentDefault.OneAtATime
  2. Service Role section configure as follows:

    1. Service Role ARN: (select the role you created in the EC2 Lab lesson)

Step 2: Test a Deployment

  1. Open the CodeDeploy Console

  2. Open the CoreApp application

  3. Locate your Deployment Group in the list, select the radio button next to it, click on the Actions from the drop down, and select Deploy new revision

  4. On the Create New Deployment screen, use these settings and click the Deploy Now button

    1. Application: Alpha

    2. Deployment Group: (your deployment group)

    3. Revision Type: My application is stored in GitHub (you'll need to Authenticate with your Github account)

    4. Repository Name: tabdon\/simple-project-app

    5. Commit ID: c98a49d15c0098256613b8aede556b5ad260a9e4

    6. Deployment Config: CodeDeploymentDefault.OneAtATime

  1. Click Deploy button
  2. Open the Deployments Console, locate the Deployment ID and click on it to monitor the progress

NOTE: You may need to reboot the instance at this point

results matching ""

    No results matching ""