Failed to create cluster with invalid tag value

Problem

You are trying to create a cluster, but it is failing with an invalid tag value error message.

System.Exception: Content={"error_code":"INVALID_PARAMETER_VALUE","message":"\nInvalid tag value (<<<<TAG-VALUE>>>>) - the length cannot exceed 256\nUnicode characters in UTF-8.\n "}

Cause

Limitations on tag Key and Value are set by AWS.

AWS tag keys must:

  • Contain 1-127 characters
  • Contain letters, spaces, numbers, or the characters + - = . _ : / @
  • Not start with aws:
  • Not duplicate an existing key

AWS tag values must:

  • Contain 1-255 characters
  • Contain letters, spaces, numbers, or the characters + - = . _ : / @
  • Not start with aws:

For more information, please refer to the AWS tag naming limits and requirements documentation.

Solution

Databricks can not modify these limits.

Requests to update any limits on tagging must be made directly with the AWS support team.