Usage examplesedit

To create your first deployment, use the ecctl deployment create command, which accepts a deployment description in the form of a JSON file and a stack version and name as inputs.

ecctl deployment create --file ./deployment.json --name=my-new-deployment --version=7.4.1
{
  "created": true,
  "id": "c44ad3fa558a237d0c17d0f4273801df",
  "name": "my example cluster",
  "resources": [
    {
      "cloud_id": "my_elasticsearch_cluster:REDACTED",
      "credentials": {
        "password": "REDACTED",
        "username": "elastic"
      },
      "id": "edd8b0bf7ece46dab47acc7074a7f191",
      "kind": "elasticsearch",
      "ref_id": "my-es-cluster",
      "region": "ece-region"
    },
    {
      "elasticsearch_cluster_ref_id": "my-es-cluster",
      "id": "44dd3575894b4fc89bd600f56d1c130d",
      "kind": "kibana",
      "ref_id": "my-kibana-instance",
      "region": "ece-region"
    },
    {
      "elasticsearch_cluster_ref_id": "my-es-cluster",
      "id": "9868cd370bdc469a8364ece4fe0db16d",
      "kind": "apm",
      "ref_id": "my-apm-instance",
      "region": "ece-region",
      "secret_token": "REDACTED"
    }
  ]
}

There’s much more you can use ecctl for. You can explore ecctl and its various commands by issuing ecctl <command> <help> to see the different options that we support.