Use CreateDeploymentConfig with a CLI - AWS SDK Code Examples

There are more AWS SDK examples available in the AWS Doc SDK Examples GitHub repo.

Use CreateDeploymentConfig with a CLI

The following code examples show how to use CreateDeploymentConfig.

CLI
AWS CLI

To create a custom deployment configuration

The following create-deployment-config example creates a custom deployment configuration and associates it with the user's AWS account.

aws deploy create-deployment-config \ --deployment-config-name ThreeQuartersHealthy \ --minimum-healthy-hosts type=FLEET_PERCENT,value=75

Output:

{ "deploymentConfigId": "a1b2c3d4-5678-90ab-cdef-11111EXAMPLE" }
PowerShell
Tools for PowerShell

Example 1: This example creates a new deployment configuration with the specified name and behavior.

New-CDDeploymentConfig -DeploymentConfigName AtLeastTwoHealthyHosts -MinimumHealthyHosts_Type HOST_COUNT -MinimumHealthyHosts_Value 2

Output:

0f3e8187-44ef-42da-aeed-b6823EXAMPLE