CmdID

CmdID / aws / aws deploy

aws deploy batch-get-deployment-groups

Gets information about one or more deployment groups. AWS CLI reference

1 example 2 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To retrieve information about one or more deployment groups

The following batch-get-deployment-groups example retrieves information about two of the deployment groups that are associated with the specified CodeDeploy application.

aws deploy batch-get-deployment-groups --application-name my-codedeploy-application --deployment-group-names "[\"my-deployment-group-1\",\"my-deployment-group-2\"]"Identify
--application-nameThe name of an CodeDeploy application associated with the applicable user or Amazon Web Services account.
--deployment-group-namesThe names of the deployment groups.
Its output, shortened
{
    "deploymentGroupsInfo": [
        {
            "deploymentStyle": {
                "deploymentOption": "WITHOUT_TRAFFIC_CONTROL",
                "deploymentType": "IN_PLACE"
            },
            "autoRollbackConfiguration": {
                "enabled": false
            },
            "onPremisesTagSet": {
                "onPremisesTagSetList": []
            },
            "serviceRoleArn": "arn:aws:iam::123456789012:role/CodeDeployServiceRole",
            "lastAttemptedDeployment": {
                "endTime": 1556912366.415,
                "status": "Failed",
                "createTime": 1556912355.884,
                "deploymentId": "d-A1B2C3111"
            },
            "autoScalingGroups": [],
            "deploymentGroupName": "my-deployment-group-1",
            "ec2TagSet": {
                "ec2TagSetList": [
                    [
                        {
                            "Type": "KEY_AND_VALUE",
                            "Value": "my-EC2-instance",
                            "Key": "Name"
                        }
… 43 more lines

For more information, see View deployment group details with CodeDeploy in the AWS CodeDeploy User Guide.

Options

2 in the AWS CLI reference
--application-nameThe name of an CodeDeploy application associated with the applicable user or Amazon Web Services account.
--deployment-group-namesThe names of the deployment groups.