DEV Community

Revathi Joshi for AWS Community Builders

Posted on

4

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)

Best Practices for Running  Container WordPress on AWS (ECS, EFS, RDS, ELB) using CDK cover image

Best Practices for Running Container WordPress on AWS (ECS, EFS, RDS, ELB) using CDK

This post discusses the process of migrating a growing WordPress eShop business to AWS using AWS CDK for an easily scalable, high availability architecture. The detailed structure encompasses several pillars: Compute, Storage, Database, Cache, CDN, DNS, Security, and Backup.

Read full post