ECS / Client / exceptions / TargetNotConnectedException

TargetNotConnectedException#

class ECS.Client.exceptions.TargetNotConnectedException#

The execute command cannot run. This error can be caused by any of the following configuration issues:

  • Incorrect IAM permissions

  • The SSM agent is not installed or is not running

  • There is an interface Amazon VPC endpoint for Amazon ECS, but there is not one for Systems Manager Session Manager

For information about how to troubleshoot the issues, see Troubleshooting issues with ECS Exec in the Amazon Elastic Container Service Developer Guide.

Example

try:
  ...
except client.exceptions.TargetNotConnectedException as e:
  print(e.response)
response#

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{}

Structure

  • (dict) –

    The execute command cannot run. This error can be caused by any of the following configuration issues:

    • Incorrect IAM permissions

    • The SSM agent is not installed or is not running

    • There is an interface Amazon VPC endpoint for Amazon ECS, but there is not one for Systems Manager Session Manager

    For information about how to troubleshoot the issues, see Troubleshooting issues with ECS Exec in the Amazon Elastic Container Service Developer Guide.

    • Error (dict) – Normalized access to common exception attributes.

      • Code (string) – An identifier specifying the exception type.

      • Message (string) – A descriptive message explaining why the exception occured.