There are more AWS SDK examples available in the AWS Doc SDK Examples
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-hoststype=FLEET_PERCENT,value=75
Output:
{ "deploymentConfigId": "a1b2c3d4-5678-90ab-cdef-11111EXAMPLE" }
-
For API details, see CreateDeploymentConfig
in AWS CLI Command Reference.
-
- 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
-
For API details, see CreateDeploymentConfig in AWS Tools for PowerShell Cmdlet Reference.
-