Skip to content

ECH Deployment creation fails if version not provided #756

@mlliarm

Description

@mlliarm

When one tries to create an ECH deployment ecctl fails with error failed to parse version: Version string empty if deployment version isn't provided.

Readiness Checklist

  • I am running the latest version
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed
  • I am reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior

The version flag should be optional and as per the ecctl deployment create --help it should default to the latest version:

Flags:
      --deployment-template string   Deployment template ID on which to base the deployment from
  -f, --file string                  DeploymentCreateRequest file definition. See help for more information
      --generate-payload             Returns the deployment payload without actually creating the deployment resources
  -h, --help                         help for create
      --name string                  Optional name for the deployment
      --request-id string            Optional request ID - Can be found in the Stderr device when a previous deployment creation failed. For more information see the examples in the help command page
  -t, --track                        Tracks the progress of the performed task
      --version string               Version to use, if not specified, the latest available stack version will be used

Current Behavior

I'm running the command:

$ ecctl deployment create --name my-deployment --deployment-template=aws-io-optimized-v2 --region=us-east-1 --track

And I'm getting the error:

failed to parse version: Version string empty

Steps to Reproduce

  1. Run ecctl deployment create --name my-deployment --deployment-template=aws-io-optimized-v2 --region=us-east-1 --track
  2. Observe error

Possible Solution

Make version optional and to default to the latest stack version.

Context

N/A

Your Environment

  • Version used:
$ ecctl version
Version:               
Client API Version:    3.8.0
Go version:            go1.24.4
Git commit:            
Built:                 
OS/Arch:               linux / amd64

Built with go install github.com/elastic/ecctl@latest

  • Running against Elastic Cloud SaaS or Elastic Cloud Enterprise and version: N/A
  • Environment name and version (e.g. Go 1.9): Go 1.24.4
  • Server type and version: Linux 6.1.0-43-amd64 SMP PREEMPT_DYNAMIC Debian 6.1.162-1 (2026-02-08) x86_64 GNU/Linux
  • Operating System and version: Debian 12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions