There are more AWS SDK examples available in the AWS Doc SDK Examples
Use ListDeploymentGroups
with a CLI
The following code examples show how to use ListDeploymentGroups
.
- CLI
-
- AWS CLI
-
To get information about deployment groups
The following
list-deployment-groups
example displays information about all deployment groups that are associated with the specified application.aws deploy list-deployment-groups --application-name
WordPress_App
Output:
{ "applicationName": "WordPress_App", "deploymentGroups": [ "WordPress_DG", "WordPress_Beta_DG" ] }
-
For API details, see ListDeploymentGroups
in AWS CLI Command Reference.
-
- PowerShell
-
- Tools for PowerShell
-
Example 1: This example gets a list of deployment groups for the specified application.
Get-CDDeploymentGroupList -ApplicationName CodeDeployDemoApplication
Output:
ApplicationName DeploymentGroups NextToken --------------- ---------------- --------- CodeDeployDemoApplication {CodeDeployDemoFleet, CodeDeployProductionFleet}
-
For API details, see ListDeploymentGroups in AWS Tools for PowerShell Cmdlet Reference.
-