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-instances
example displays information about all deployment instances that are associated with the specified deployment.aws deploy list-deployment-instances \ --deployment-id
d-A1B2C3111
\ --instance-status-filterSucceeded
Output:
{ "instancesList": [ "i-EXAMPLE11", "i-EXAMPLE22" ] }
-
For API details, see ListDeploymentInstances
in AWS CLI Command Reference.
-
- PowerShell
-
- Tools for PowerShell
-
Example 1: This example gets a list of instance IDs for the specified deployment.
Get-CDDeploymentInstanceList -DeploymentId d-QZMRGSTEX
Output:
i-254e22EX i-274e22EX i-3b4e22EX
-
For API details, see ListDeploymentInstances in AWS Tools for PowerShell Cmdlet Reference.
-