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 PacktCodeDeployDemo, and the deployment configuration called CodeDeployDefault.OneAtATime with the service role ARN:
aws deploy create-deployment-group --application-name Packt_CodeDeploy_Demo --deployment-group-name ...