DEV Community

Revathi Joshi for AWS Community Builders

Posted on

3-part series - (2) Create a CodeDeploy application and Deployment group

In this 3-part series on Create and Deploy applications using CodeDeploy and CodePipeline with Amazon S3 bucket versioning enabled -

In the 2nd article, We will Cceate a CodeDeploy application and Deployment group

1st article

Let’s get started!

Please visit my GitHub Repository for CI-CD/Docker/ECS/ECR articles on various topics being updated on constant basis.

Objectives:

1. Create a CodeDeploy application

2. Create a Deployment group

Pre-requisites:

  • AWS user account with admin access, not a root account.
  • AWS CLI.

Resources Used:

CodeCommit

CodeBuild

CodeDeploy

AWS CodePipeline

Steps for implementation to this project

1. Create a CodeDeploy application

  • Go to CodeDeploy Console, Applications, Create application, my-codedeployapp, Compute platform , Select the EC2/On-Premises

  • Create application

Image description

2. Create a Deployment group

  • click my-codedeployapp, Service role: Role-CodeDeploy, Create deployment group, my-codedeploy-grp, Deployment type, In-place deployment, Environment configuration, Select Amazon EC2 Instances,In Tag Group 1, Key-Name, Value:my-ec2, Matching instances, 1 unique matched instance, Agent configuration with AWS Systems Manager: Never, Deployment settings: Select CodeDeployDefault.AllAtOnce, Load balancer: Uncheck

  • Create deployment group.

Image description

What we have done so far

  • We will successfully created a CodeDeploy application and Deployment group.

Top comments (0)