Creating AWS CodeDeploy application using the Auto Scaling group
In this recipe, we will be creating a CodeDeploy application, which will deploy the application in Auto Scaling Group. Here, CodeDeploy will be triggered via Jenkins, so before mentioning the details of CodeDeploy, we need to set up CodeDeploy.
Getting ready
First of all, we should have an Auto Scaling group, in which the instance should have a proper role attached, which we had already created in the previous section.
We also need to create CodeDeploy Service Role, which should have the policy to access the files from S3 and deploy it to the EC2 instance.
How to do it...
To create AWS CodeDeploy application, go to AWS Console and click on CodeDeploy in the Developers Tool
section:
- Click on
Create application
:

- Then, fill the application name as
AWSSTAR-CD-AN
and theDeployment group
name asAWSSTAR-CD-GN
. Keep the deployment group inIn-Place Deployment
only.
- In the
Environment configuration
section, we need to chooseAuto Scaling...