CmdID

CmdID / aws / aws deploy

aws deploy get-deployment-target

Returns information about a deployment target. 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 return information about a deployment target

The following get-deployment-target example returns information about a deployment target that is associated with the specified deployment.

aws deploy get-deployment-target --deployment-id "d-A1B2C3111" --target-id "i-a1b2c3d4e5f611111"Identify
--deployment-idThe unique ID of a deployment.
--target-idThe unique ID of a deployment target.
Its output, shortened
{
    "deploymentTarget": {
        "deploymentTargetType": "InstanceTarget",
        "instanceTarget": {
            "lastUpdatedAt": 1556918687.504,
            "targetId": "i-a1b2c3d4e5f611111",
            "targetArn": "arn:aws:ec2:us-west-2:123456789012:instance/i-a1b2c3d4e5f611111",
            "status": "Succeeded",
            "lifecycleEvents": [
                {
                    "status": "Succeeded",
                    "diagnostics": {
                        "errorCode": "Success",
                        "message": "Succeeded",
                        "logTail": "",
                        "scriptName": ""
                    },
                    "lifecycleEventName": "ApplicationStop",
                    "startTime": 1556918592.162,
                    "endTime": 1556918592.247
                },
                {
                    "status": "Succeeded",
                    "diagnostics": {
                        "errorCode": "Success",
                        "message": "Succeeded",
                        "logTail": "",
                        "scriptName": ""
                    },
                    "lifecycleEventName": "DownloadBundle",
… 68 more lines

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

Options

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