CmdID

CmdID / aws / aws deploy

aws deploy batch-get-deployment-targets

Returns an array of one or more targets associated with a deployment. 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 the targets associated with a deployment

The following batch-get-deployment-targets example returns information about one of the targets associated with the specified deployment.

aws deploy batch-get-deployment-targets --deployment-id "d-1A2B3C4D5" --target-ids "i-01a2b3c4d5e6f1111"Identify
--deployment-idThe unique ID of a deployment.
--target-idsThe unique IDs of the deployment targets.
Its output, shortened
{
    "deploymentTargets": [
        {
            "deploymentTargetType": "InstanceTarget",
            "instanceTarget": {
                "lifecycleEvents": [
                    {
                        "startTime": 1556918592.162,
                        "lifecycleEventName": "ApplicationStop",
                        "status": "Succeeded",
                        "endTime": 1556918592.247,
                        "diagnostics": {
                            "scriptName": "",
                            "errorCode": "Success",
                            "logTail": "",
                            "message": "Succeeded"
                        }
                    },
                    {
                        "startTime": 1556918593.193,
                        "lifecycleEventName": "DownloadBundle",
                        "status": "Succeeded",
                        "endTime": 1556918593.981,
                        "diagnostics": {
                            "scriptName": "",
                            "errorCode": "Success",
                            "logTail": "",
                            "message": "Succeeded"
                        }
                    },
… 22 more lines

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

Options

2 in the AWS CLI reference
--deployment-idThe unique ID of a deployment.
--target-idsThe unique IDs of the deployment targets.