Skip to content

Deployment creation fails even if version is provided #757

@mlliarm

Description

@mlliarm

Tried creating a deployment from the example given in the ecctl deployment create --help, and even if I provide a version it fails.

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

I'd expect creation to succeed and not fail.

Current Behavior

When running:

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

I'm getting the error:

The deployment creation returned with an error. Use the displayed request ID to recreate the deployment resources
Request ID: f9g593c0p81o4ay5766uvb219r65snctoltcyvbfokc4spc5plh9xmlvou47vgdl
api error: 7 errors occurred:
        * deployments.elasticsearch_using_legacy_dt: The referenced deployment template in elasticsearch plan [aws-io-optimized-v2] is no longer available.
        * deployments.topology_element_using_legacy_ic: The referenced instance configuration [aws.coordinating.m5d] in topology element [coordinating] is no longer available.
        * deployments.topology_element_using_legacy_ic: The referenced instance configuration [aws.data.highio.i3] in topology element [hot_content] is no longer available.
        * deployments.topology_element_using_legacy_ic: The referenced instance configuration [aws.data.highstorage.d3] in topology element [cold] is no longer available.
        * deployments.topology_element_using_legacy_ic: The referenced instance configuration [aws.data.highstorage.d3] in topology element [warm] is no longer available.
        * deployments.topology_element_using_legacy_ic: The referenced instance configuration [aws.master.r5d] in topology element [master] is no longer available.
        * deployments.topology_element_using_legacy_ic: The referenced instance configuration [aws.ml.m5d] in topology element [ml] is no longer available.

Steps to Reproduce

  1. Run command ecctl deployment create --name my-deployment --deployment-template=aws-io-optimized-v2 --region=us-east-1 --version "9.3.1"
  2. See error.

Possible Solution

Seems the default template aws-io-optimized-v2 isn't correct or available anymore.

Same goes for the other 7 errors.

I'm thinking they should be replaced with defaults that exist.

Context

I'm testing how I can create an ECH deployment fast using ecctl.

Your Environment

  • Version used: latest version:
$ ecctl version
Version:               
Client API Version:    3.8.0
Go version:            go1.26.1
Git commit:            
Built:                 
OS/Arch:               linux / amd64
  • Running against Elastic Cloud SaaS or Elastic Cloud Enterprise and version: ECH
  • Environment name and version (e.g. Go 1.9): Go 1.26.1
  • 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

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