{ "info": { "_postman_id": "7db19d2b-a4ef-4eb2-bc97-b18414e6ef9c", "name": "AWS CodeDeploy Applications #X Amz Target=CodeDeploy 20141006.GetDeploymentTarget API", "description": "

CodeDeploy is a deployment service that automates application deployments to Amazon EC2 instances, on-premises instances running in your own facility, serverless Lambda functions, or applications in an Amazon ECS service.

You can deploy a nearly unlimited variety of application content, such as an updated Lambda function, updated applications in an Amazon ECS service, code, web and configuration files, executables, packages, scripts, multimedia files, and so on. CodeDeploy can deploy application content stored in Amazon S3 buckets, GitHub repositories, or Bitbucket repositories. You do not need to make changes to your existing code before you can use CodeDeploy.

CodeDeploy makes it easier for you to rapidly release new features, helps you avoid downtime during application deployment, and handles the complexity of updating your applications, without many of the risks associated with error-prone manual deployments.

CodeDeploy Components

Use the information in this guide to help you work with the following CodeDeploy components:

This guide also contains information to help you get details about the instances in your deployments, to make on-premises instances available for CodeDeploy deployments, to get details about a Lambda function deployment, and to get details about Amazon ECS service deployments.

CodeDeploy Information Resources

\n\nContact Support:\n Name: Mike Ralphson\n Email: mike.ralphson@gmail.com", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "createdAt": "2026-07-28T10:12:37.000Z", "updatedAt": "2026-07-28T10:12:37.000Z", "lastUpdatedBy": "35240", "uid": "35240-7db19d2b-a4ef-4eb2-bc97-b18414e6ef9c" }, "item": [ { "name": "#X-Amz-Target=CodeDeploy_20141006.GetDeploymentTarget", "item": [ { "name": "Amazon CodeDeploy Get Deployment Target", "id": "7891427a-d6ef-4ace-8bce-c0ee2ba1bf61", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "POST", "header": [ { "description": "(Required) ", "key": "X-Amz-Target", "value": "CodeDeploy_20141006.GetDeploymentTarget" }, { "key": "X-Amz-Content-Sha256", "value": "" }, { "key": "X-Amz-Date", "value": "" }, { "key": "X-Amz-Algorithm", "value": "" }, { "key": "X-Amz-Credential", "value": "" }, { "key": "X-Amz-Security-Token", "value": "" }, { "key": "X-Amz-Signature", "value": "" }, { "key": "X-Amz-SignedHeaders", "value": "" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"deploymentId\": \"\",\n \"targetId\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/#X-Amz-Target=CodeDeploy_20141006.GetDeploymentTarget", "host": [ "{{baseUrl}}" ], "path": [ "" ], "hash": "X-Amz-Target=CodeDeploy_20141006.GetDeploymentTarget" }, "description": " Returns information about a deployment target. " }, "response": [ { "id": "30ba6ca5-2145-4199-ba41-1c9f66c94bbd", "name": "Success", "originalRequest": { "method": "POST", "header": [ { "description": "(Required) ", "key": "X-Amz-Target", "value": "CodeDeploy_20141006.GetDeploymentTarget" }, { "key": "X-Amz-Content-Sha256", "value": "" }, { "key": "X-Amz-Date", "value": "" }, { "key": "X-Amz-Algorithm", "value": "" }, { "key": "X-Amz-Credential", "value": "" }, { "key": "X-Amz-Security-Token", "value": "" }, { "key": "X-Amz-Signature", "value": "" }, { "key": "X-Amz-SignedHeaders", "value": "" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: apikey", "key": "Authorization", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"deploymentId\": \"\",\n \"targetId\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/#X-Amz-Target=CodeDeploy_20141006.GetDeploymentTarget", "host": [ "{{baseUrl}}" ], "path": [ "" ], "hash": "X-Amz-Target=CodeDeploy_20141006.GetDeploymentTarget" } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"deploymentTarget\": {\n \"deploymentTargetType\": \"CloudFormationTarget\",\n \"instanceTarget\": {\n \"deploymentId\": \"\",\n \"targetId\": \"\",\n \"targetArn\": \"\",\n \"status\": \"Skipped\",\n \"lastUpdatedAt\": \"\",\n \"lifecycleEvents\": [\n {\n \"lifecycleEventName\": \"\",\n \"diagnostics\": {\n \"errorCode\": \"ScriptNotExecutable\",\n \"scriptName\": \"\",\n \"message\": \"\",\n \"logTail\": \"\"\n },\n \"startTime\": \"\",\n \"endTime\": \"\",\n \"status\": \"Unknown\"\n },\n {\n \"lifecycleEventName\": \"\",\n \"diagnostics\": {\n \"errorCode\": \"UnknownError\",\n \"scriptName\": \"\",\n \"message\": \"\",\n \"logTail\": \"\"\n },\n \"startTime\": \"\",\n \"endTime\": \"\",\n \"status\": \"Failed\"\n }\n ],\n \"instanceLabel\": \"Green\"\n },\n \"lambdaTarget\": {\n \"deploymentId\": \"\",\n \"targetId\": \"\",\n \"targetArn\": \"\",\n \"status\": \"Ready\",\n \"lastUpdatedAt\": \"\",\n \"lifecycleEvents\": [\n {\n \"lifecycleEventName\": \"\",\n \"diagnostics\": {\n \"errorCode\": \"UnknownError\",\n \"scriptName\": \"\",\n \"message\": \"\",\n \"logTail\": \"\"\n },\n \"startTime\": \"\",\n \"endTime\": \"\",\n \"status\": \"Unknown\"\n },\n {\n \"lifecycleEventName\": \"\",\n \"diagnostics\": {\n \"errorCode\": \"Success\",\n \"scriptName\": \"\",\n \"message\": \"\",\n \"logTail\": \"\"\n },\n \"startTime\": \"\",\n \"endTime\": \"\",\n \"status\": \"Unknown\"\n }\n ],\n \"lambdaFunctionInfo\": {\n \"functionName\": \"\",\n \"functionAlias\": \"\",\n \"currentVersion\": \"\",\n \"targetVersion\": \"\",\n \"targetVersionWeight\": \"\"\n }\n },\n \"ecsTarget\": {\n \"deploymentId\": \"\",\n \"targetId\": \"\",\n \"targetArn\": \"\",\n \"lastUpdatedAt\": \"\",\n \"lifecycleEvents\": [\n {\n \"lifecycleEventName\": \"\",\n \"diagnostics\": {\n \"errorCode\": \"UnknownError\",\n \"scriptName\": \"\",\n \"message\": \"\",\n \"logTail\": \"\"\n },\n \"startTime\": \"\",\n \"endTime\": \"\",\n \"status\": \"Succeeded\"\n },\n {\n \"lifecycleEventName\": \"\",\n \"diagnostics\": {\n \"errorCode\": \"ScriptMissing\",\n \"scriptName\": \"\",\n \"message\": \"\",\n \"logTail\": \"\"\n },\n \"startTime\": \"\",\n \"endTime\": \"\",\n \"status\": \"Pending\"\n }\n ],\n \"status\": \"Unknown\",\n \"taskSetsInfo\": [\n {\n \"identifer\": \"\",\n \"desiredCount\": \"\",\n \"pendingCount\": \"\",\n \"runningCount\": \"\",\n \"status\": \"\",\n \"trafficWeight\": \"\",\n \"targetGroup\": {\n \"name\": \"\"\n },\n \"taskSetLabel\": \"Blue\"\n },\n {\n \"identifer\": \"\",\n \"desiredCount\": \"\",\n \"pendingCount\": \"\",\n \"runningCount\": \"\",\n \"status\": \"\",\n \"trafficWeight\": \"\",\n \"targetGroup\": {\n \"name\": \"\"\n },\n \"taskSetLabel\": \"Green\"\n }\n ]\n },\n \"cloudFormationTarget\": {\n \"deploymentId\": \"\",\n \"targetId\": \"\",\n \"lastUpdatedAt\": \"\",\n \"lifecycleEvents\": [\n {\n \"lifecycleEventName\": \"\",\n \"diagnostics\": {\n \"errorCode\": \"ScriptNotExecutable\",\n \"scriptName\": \"\",\n \"message\": \"\",\n \"logTail\": \"\"\n },\n \"startTime\": \"\",\n \"endTime\": \"\",\n \"status\": \"Failed\"\n },\n {\n \"lifecycleEventName\": \"\",\n \"diagnostics\": {\n \"errorCode\": \"ScriptFailed\",\n \"scriptName\": \"\",\n \"message\": \"\",\n \"logTail\": \"\"\n },\n \"startTime\": \"\",\n \"endTime\": \"\",\n \"status\": \"Unknown\"\n }\n ],\n \"status\": \"Ready\",\n \"resourceType\": \"\",\n \"targetVersionWeight\": \"\"\n }\n }\n}", "createdAt": "2026-07-28T10:12:37.000Z", "updatedAt": "2026-07-28T10:12:37.000Z", "uid": "35240-30ba6ca5-2145-4199-ba41-1c9f66c94bbd" }, { "id": "7ca3daf4-f756-4e5a-a03e-dd6771b4d720", "name": "InvalidDeploymentIdException", "originalRequest": { "method": "POST", "header": [ { "description": "(Required) ", "key": "X-Amz-Target", "value": "CodeDeploy_20141006.GetDeploymentTarget" }, { "key": "X-Amz-Content-Sha256", "value": "" }, { "key": "X-Amz-Date", "value": "" }, { "key": "X-Amz-Algorithm", "value": "" }, { "key": "X-Amz-Credential", "value": "" }, { "key": "X-Amz-Security-Token", "value": "" }, { "key": "X-Amz-Signature", "value": "" }, { "key": "X-Amz-SignedHeaders", "value": "" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: apikey", "key": "Authorization", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"deploymentId\": \"\",\n \"targetId\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/#X-Amz-Target=CodeDeploy_20141006.GetDeploymentTarget", "host": [ "{{baseUrl}}" ], "path": [ "" ], "hash": "X-Amz-Target=CodeDeploy_20141006.GetDeploymentTarget" } }, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{}", "createdAt": "2026-07-28T10:12:37.000Z", "updatedAt": "2026-07-28T10:12:37.000Z", "uid": "35240-7ca3daf4-f756-4e5a-a03e-dd6771b4d720" }, { "id": "a19267da-7f23-4012-8762-7d5689c18502", "name": "DeploymentIdRequiredException", "originalRequest": { "method": "POST", "header": [ { "description": "(Required) ", "key": "X-Amz-Target", "value": "CodeDeploy_20141006.GetDeploymentTarget" }, { "key": "X-Amz-Content-Sha256", "value": "" }, { "key": "X-Amz-Date", "value": "" }, { "key": "X-Amz-Algorithm", "value": "" }, { "key": "X-Amz-Credential", "value": "" }, { "key": "X-Amz-Security-Token", "value": "" }, { "key": "X-Amz-Signature", "value": "" }, { "key": "X-Amz-SignedHeaders", "value": "" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: apikey", "key": "Authorization", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"deploymentId\": \"\",\n \"targetId\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/#X-Amz-Target=CodeDeploy_20141006.GetDeploymentTarget", "host": [ "{{baseUrl}}" ], "path": [ "" ], "hash": "X-Amz-Target=CodeDeploy_20141006.GetDeploymentTarget" } }, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{}", "createdAt": "2026-07-28T10:12:37.000Z", "updatedAt": "2026-07-28T10:12:37.000Z", "uid": "35240-a19267da-7f23-4012-8762-7d5689c18502" }, { "id": "4b4d9876-da31-41b6-872a-3e6a6774befa", "name": "DeploymentDoesNotExistException", "originalRequest": { "method": "POST", "header": [ { "description": "(Required) ", "key": "X-Amz-Target", "value": "CodeDeploy_20141006.GetDeploymentTarget" }, { "key": "X-Amz-Content-Sha256", "value": "" }, { "key": "X-Amz-Date", "value": "" }, { "key": "X-Amz-Algorithm", "value": "" }, { "key": "X-Amz-Credential", "value": "" }, { "key": "X-Amz-Security-Token", "value": "" }, { "key": "X-Amz-Signature", "value": "" }, { "key": "X-Amz-SignedHeaders", "value": "" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: apikey", "key": "Authorization", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"deploymentId\": \"\",\n \"targetId\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/#X-Amz-Target=CodeDeploy_20141006.GetDeploymentTarget", "host": [ "{{baseUrl}}" ], "path": [ "" ], "hash": "X-Amz-Target=CodeDeploy_20141006.GetDeploymentTarget" } }, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{}", "createdAt": "2026-07-28T10:12:37.000Z", "updatedAt": "2026-07-28T10:12:37.000Z", "uid": "35240-4b4d9876-da31-41b6-872a-3e6a6774befa" }, { "id": "c2134bd2-280c-4db4-ae1a-49e8d38273ae", "name": "DeploymentNotStartedException", "originalRequest": { "method": "POST", "header": [ { "description": "(Required) ", "key": "X-Amz-Target", "value": "CodeDeploy_20141006.GetDeploymentTarget" }, { "key": "X-Amz-Content-Sha256", "value": "" }, { "key": "X-Amz-Date", "value": "" }, { "key": "X-Amz-Algorithm", "value": "" }, { "key": "X-Amz-Credential", "value": "" }, { "key": "X-Amz-Security-Token", "value": "" }, { "key": "X-Amz-Signature", "value": "" }, { "key": "X-Amz-SignedHeaders", "value": "" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: apikey", "key": "Authorization", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"deploymentId\": \"\",\n \"targetId\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/#X-Amz-Target=CodeDeploy_20141006.GetDeploymentTarget", "host": [ "{{baseUrl}}" ], "path": [ "" ], "hash": "X-Amz-Target=CodeDeploy_20141006.GetDeploymentTarget" } }, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{}", "createdAt": "2026-07-28T10:12:37.000Z", "updatedAt": "2026-07-28T10:12:37.000Z", "uid": "35240-c2134bd2-280c-4db4-ae1a-49e8d38273ae" }, { "id": "3dd830d4-5c7f-4538-939a-c2fcf19b7d48", "name": "DeploymentTargetIdRequiredException", "originalRequest": { "method": "POST", "header": [ { "description": "(Required) ", "key": "X-Amz-Target", "value": "CodeDeploy_20141006.GetDeploymentTarget" }, { "key": "X-Amz-Content-Sha256", "value": "" }, { "key": "X-Amz-Date", "value": "" }, { "key": "X-Amz-Algorithm", "value": "" }, { "key": "X-Amz-Credential", "value": "" }, { "key": "X-Amz-Security-Token", "value": "" }, { "key": "X-Amz-Signature", "value": "" }, { "key": "X-Amz-SignedHeaders", "value": "" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: apikey", "key": "Authorization", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"deploymentId\": \"\",\n \"targetId\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/#X-Amz-Target=CodeDeploy_20141006.GetDeploymentTarget", "host": [ "{{baseUrl}}" ], "path": [ "" ], "hash": "X-Amz-Target=CodeDeploy_20141006.GetDeploymentTarget" } }, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{}", "createdAt": "2026-07-28T10:12:37.000Z", "updatedAt": "2026-07-28T10:12:37.000Z", "uid": "35240-3dd830d4-5c7f-4538-939a-c2fcf19b7d48" }, { "id": "e08bb724-b769-43f9-902c-dfb5a5298532", "name": "InvalidDeploymentTargetIdException", "originalRequest": { "method": "POST", "header": [ { "description": "(Required) ", "key": "X-Amz-Target", "value": "CodeDeploy_20141006.GetDeploymentTarget" }, { "key": "X-Amz-Content-Sha256", "value": "" }, { "key": "X-Amz-Date", "value": "" }, { "key": "X-Amz-Algorithm", "value": "" }, { "key": "X-Amz-Credential", "value": "" }, { "key": "X-Amz-Security-Token", "value": "" }, { "key": "X-Amz-Signature", "value": "" }, { "key": "X-Amz-SignedHeaders", "value": "" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: apikey", "key": "Authorization", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"deploymentId\": \"\",\n \"targetId\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/#X-Amz-Target=CodeDeploy_20141006.GetDeploymentTarget", "host": [ "{{baseUrl}}" ], "path": [ "" ], "hash": "X-Amz-Target=CodeDeploy_20141006.GetDeploymentTarget" } }, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{}", "createdAt": "2026-07-28T10:12:37.000Z", "updatedAt": "2026-07-28T10:12:37.000Z", "uid": "35240-e08bb724-b769-43f9-902c-dfb5a5298532" }, { "id": "6586ddb8-8651-4f6e-a931-94b07e575fa0", "name": "DeploymentTargetDoesNotExistException", "originalRequest": { "method": "POST", "header": [ { "description": "(Required) ", "key": "X-Amz-Target", "value": "CodeDeploy_20141006.GetDeploymentTarget" }, { "key": "X-Amz-Content-Sha256", "value": "" }, { "key": "X-Amz-Date", "value": "" }, { "key": "X-Amz-Algorithm", "value": "" }, { "key": "X-Amz-Credential", "value": "" }, { "key": "X-Amz-Security-Token", "value": "" }, { "key": "X-Amz-Signature", "value": "" }, { "key": "X-Amz-SignedHeaders", "value": "" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: apikey", "key": "Authorization", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"deploymentId\": \"\",\n \"targetId\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/#X-Amz-Target=CodeDeploy_20141006.GetDeploymentTarget", "host": [ "{{baseUrl}}" ], "path": [ "" ], "hash": "X-Amz-Target=CodeDeploy_20141006.GetDeploymentTarget" } }, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{}", "createdAt": "2026-07-28T10:12:37.000Z", "updatedAt": "2026-07-28T10:12:37.000Z", "uid": "35240-6586ddb8-8651-4f6e-a931-94b07e575fa0" }, { "id": "60c888d6-7f05-4860-b869-faa9d8a27fed", "name": "InvalidInstanceNameException", "originalRequest": { "method": "POST", "header": [ { "description": "(Required) ", "key": "X-Amz-Target", "value": "CodeDeploy_20141006.GetDeploymentTarget" }, { "key": "X-Amz-Content-Sha256", "value": "" }, { "key": "X-Amz-Date", "value": "" }, { "key": "X-Amz-Algorithm", "value": "" }, { "key": "X-Amz-Credential", "value": "" }, { "key": "X-Amz-Security-Token", "value": "" }, { "key": "X-Amz-Signature", "value": "" }, { "key": "X-Amz-SignedHeaders", "value": "" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: apikey", "key": "Authorization", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"deploymentId\": \"\",\n \"targetId\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/#X-Amz-Target=CodeDeploy_20141006.GetDeploymentTarget", "host": [ "{{baseUrl}}" ], "path": [ "" ], "hash": "X-Amz-Target=CodeDeploy_20141006.GetDeploymentTarget" } }, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{}", "createdAt": "2026-07-28T10:12:37.000Z", "updatedAt": "2026-07-28T10:12:37.000Z", "uid": "35240-60c888d6-7f05-4860-b869-faa9d8a27fed" } ], "createdAt": "2026-07-28T10:12:37.000Z", "updatedAt": "2026-07-28T10:12:37.000Z", "uid": "35240-7891427a-d6ef-4ace-8bce-c0ee2ba1bf61" } ], "id": "631eeae7-1da6-42ad-9210-1ff7bb4c4f9c", "createdAt": "2026-07-28T10:12:37.000Z", "updatedAt": "2026-07-28T10:12:37.000Z", "uid": "35240-631eeae7-1da6-42ad-9210-1ff7bb4c4f9c" } ], "auth": { "type": "apikey", "apikey": [ { "key": "key", "value": "Authorization", "type": "string" }, { "key": "value", "value": "{{apiKey}}", "type": "string" }, { "key": "in", "value": "header", "type": "string" } ] }, "variable": [ { "key": "region", "value": "us-east-1" }, { "key": "baseUrl", "value": "http://codedeploy.{{region}}.amazonaws.com" } ] }