Create a Deployment Configuration with AWS CodeDeploy
You can use the AWS CLI, the AWS CodeDeploy APIs, or an AWS CloudFormation template to create custom deployment configurations.
In the AWS CodeDeploy console, you can use the Sample deployment wizard for an in-place deployment to create a custom deployment configuration.
For information about using an AWS CloudFormation template to create a deployment configuration, see AWS CloudFormation Template Reference.
To use the AWS CLI to create a deployment configuration, call the create-deployment-config command, specifying:
A name that uniquely identifies the deployment configuration. This name must be unique across all of the deployment configurations you create with AWS CodeDeploy associated with your AWS account.
The minimum number or percentage of healthy instances that should be available at any time during the deployment. For more information, see Instance Health.
The following example creates a deployment configuration named ThreeQuartersHealthy that require 75% of target instances to remain healthy during a deployment:
aws deploy create-deployment-config --deployment-config-name ThreeQuartersHealthy --minimum-healthy-hosts type=FLEET_PERCENT,value=75