EKS / Client / exceptions / UnsupportedAvailabilityZoneException

UnsupportedAvailabilityZoneException#

class EKS.Client.exceptions.UnsupportedAvailabilityZoneException#

At least one of your specified cluster subnets is in an Availability Zone that does not support Amazon EKS. The exception output specifies the supported Availability Zones for your account, from which you can choose subnets for your cluster.

Example

try:
  ...
except client.exceptions.UnsupportedAvailabilityZoneException 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

{
    'message': 'string',
    'clusterName': 'string',
    'nodegroupName': 'string',
    'validZones': [
        'string',
    ],
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) –

    At least one of your specified cluster subnets is in an Availability Zone that does not support Amazon EKS. The exception output specifies the supported Availability Zones for your account, from which you can choose subnets for your cluster.

    • message (string) –

      At least one of your specified cluster subnets is in an Availability Zone that does not support Amazon EKS. The exception output specifies the supported Availability Zones for your account, from which you can choose subnets for your cluster.

    • clusterName (string) –

      The Amazon EKS cluster associated with the exception.

    • nodegroupName (string) –

      The Amazon EKS managed node group associated with the exception.

    • validZones (list) –

      The supported Availability Zones for your account. Choose subnets in these Availability Zones for your cluster.

      • (string) –

    • 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.