Use ListDeploymentInstances with a CLI - AWS SDK Code Examples

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

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-filter Succeeded

Output:

{ "instancesList": [ "i-EXAMPLE11", "i-EXAMPLE22" ] }
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