...

/

Demo: Deploying an Application Version Using AWS CodeDeploy

Demo: Deploying an Application Version Using AWS CodeDeploy

Learn how to create a deployment group and deploy an application revision from an S3 bucket.

Once the target instances are created, we can launch AWS CodeDeploy and create an application first.

Create an AWS CodeDeploy application

Now, we give the application a meaningful name and choose a computing platform. CodeDeploy supports AWS Lambda and Amazon ECS in addition to EC2 instances.

Press + to interact
Creation of the CodeDeploy application
Creation of the CodeDeploy application

We can also achieve this using the aws deploy create-application CLI command, as shown below.

Press + to interact
root@educative:/# aws deploy create-application \
--application-name eduApplication
{
"applicationId": "8cd2c455-fb01-4f39-af28-5d32bdacbc9b"
}

Create a new deployment group

Once the AWS CodeDeply application is created, we can create a deployment group by giving it a name and selecting the service role. We need this service role to access our target instances where the application must be deployed. Unlike the roles that we create and assign to an individual, a service role is a role that AWS service assumes to perform an action on our behalf.

Press + to interact
Creation of the deployment group
Creation of the deployment group

Under environment configuration, we can select theAdd tag group” to filter the EC2 instances where the application will be deployed. This is the reason our EC2 instances need meaningful tag information. As seen in the screenshot below, CodeDeploy has identified a single unique matching instance ...