Create a deployment group with CodeDeploy - Amazon CodeDeploy
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Create a deployment group with CodeDeploy

You can use the CodeDeploy console, the Amazon CLI, the CodeDeploy APIs, or an Amazon CloudFormation template to create deployment groups. For information about using an Amazon CloudFormation template to create a deployment group, see Amazon CloudFormation templates for CodeDeploy reference.

When you use the CodeDeploy console to create an application, you configure its first deployment group at the same time. When you use the Amazon CLI to create an application, you create its first deployment group in a separate step.

As part of creating a deployment group, you must specify a service role. For more information, see Step 2: Create a service role for CodeDeploy.