Menu
AWS CodeDeploy
User Guide (API Version 2014-10-06)

Create a Deployment Group with AWS CodeDeploy

You can use the AWS CodeDeploy console, the AWS CLI, the AWS CodeDeploy APIs, or an AWS CloudFormation template to create deployment groups. For information about using an AWS CloudFormation template to create a deployment group, see AWS CloudFormation Template Reference.

When you use the AWS CodeDeploy console to create an application, you configure its first deployment group at the same time. When you use the AWS 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 3: Create a Service Role.

Warning

Do not follow these steps if:

  • You have not prepared your instances to be used in the first AWS CodeDeploy deployment of an application. To set up your instances, follow the instructions in Working with Instances, and then follow the steps in this topic.

  • You want to create a deployment group that uses a custom deployment configuration, but you have not yet created the deployment configuration. Follow the instructions in Create a Deployment Configuration, and then follow the steps in this topic.

  • You do not have a service role that trusts AWS CodeDeploy with, at minimum, the trust and permissions described in Step 3: Create a Service Role. To create and configure a service role, follow the instructions in Step 3: Create a Service Role, and then follow the steps in this topic.