There are more AWS SDK examples available in the AWS Doc SDK Examples
Use ListDeploymentInstances with a CLI
The following code examples show how to use ListDeploymentInstances.
- CLI
-
- AWS CLI
-
To get information about deployment instances
The following
list-deployment-instancesexample displays information about all deployment instances that are associated with the specified deployment.aws deploy list-deployment-instances \ --deployment-idd-A1B2C3111\ --instance-status-filterSucceededOutput:
{ "instancesList": [ "i-EXAMPLE11", "i-EXAMPLE22" ] }-
For API details, see ListDeploymentInstances
in AWS CLI Command Reference.
-
- PowerShell
-
- Tools for PowerShell V4
-
Example 1: This example gets a list of instance IDs for the specified deployment.
Get-CDDeploymentInstanceList -DeploymentId d-QZMRGSTEXOutput:
i-254e22EX i-274e22EX i-3b4e22EX-
For API details, see ListDeploymentInstances in AWS Tools for PowerShell Cmdlet Reference (V4).
-
- Tools for PowerShell V5
-
Example 1: This example gets a list of instance IDs for the specified deployment.
Get-CDDeploymentInstanceList -DeploymentId d-QZMRGSTEXOutput:
i-254e22EX i-274e22EX i-3b4e22EX-
For API details, see ListDeploymentInstances in AWS Tools for PowerShell Cmdlet Reference (V5).
-