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
Open the CodeDeploy Console
Click on the Create New Application button, and use these settings on the screen that follows:
Application Name: Alpha
Deployment Group Name: AppServer
Add Instances section configure as follows:
Tag Type: Autoscaling Group
Key: <your_name>-ASG1
Deployment Configuration section configure as follows:
- Deployment Config: CodeDeploymentDefault.OneAtATime
Service Role section configure as follows:
- Service Role ARN: (select the role you created in the EC2 Lab lesson)
Step 2: Test a Deployment
Open the CodeDeploy Console
Open the CoreApp application
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
On the Create New Deployment screen, use these settings and click the Deploy Now button
Application: Alpha
Deployment Group: (your deployment group)
Revision Type: My application is stored in GitHub (you'll need to Authenticate with your Github account)
Repository Name: tabdon\/simple-project-app
Commit ID: c98a49d15c0098256613b8aede556b5ad260a9e4
Deployment Config: CodeDeploymentDefault.OneAtATime
- Click Deploy button
- 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