To deploy and monitor the application from AWS CLI

To deploy the application, you need to create deployment groups. You can use the service role ARN that you created in Step 1 – prerequisite configurations for AWS CodeDeploy. From this service role, AWS CodeDeploy will get the permission to access the Amazon EC2 instance to expand its tags.

Now, call the create-deployment-group command to create the deployment group called Packt_Deployment_Group, associated with the application called Packt_CodeDeploy_Demo, the AWS instance tag called  PacktCodeDeployDemoand the deployment configuration called  CodeDeployDefault.OneAtATime with the service role ARN:

aws deploy create-deployment-group --application-name Packt_CodeDeploy_Demo --deployment-group-name ...

Get Expert AWS Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.