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
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
- Run
ecctl deployment create --name my-deployment --deployment-template=aws-io-optimized-v2 --region=us-east-1 --track
- Observe error
Possible Solution
Make version optional and to default to the latest stack version.
Context
N/A
Your Environment
$ 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
When one tries to create an ECH deployment
ecctlfails with errorfailed to parse version: Version string emptyif deployment version isn't provided.Readiness Checklist
Expected Behavior
The version flag should be optional and as per the
ecctl deployment create --helpit should default to the latest version:Current Behavior
I'm running the command:
And I'm getting the error:
Steps to Reproduce
ecctl deployment create --name my-deployment --deployment-template=aws-io-optimized-v2 --region=us-east-1 --trackPossible Solution
Make version optional and to default to the latest stack version.
Context
N/A
Your Environment
Built with
go install github.com/elastic/ecctl@latest