ecctl deployment update
Elastic Cloud Hosted lets you manage and configure one or more deployments of the versioned Elastic Stack, hosted on Elastic Cloud. Availability This functionality is generally available and ready for production usage. Elastic Cloud Enterprise is a self-managed orchestration platform for deploying and managing the Elastic Stack at scale. Availability This functionality is generally available and ready for production usage. This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.
ECH
Generally available
ECE
Generally available
Updates a deployment from a file definition, allowing certain flag overrides.
updates a deployment from a file definition: Defaulting prune_orphans=false, making the default update action safe for partial updates. To override this behavior, toggle --prune-orphans. To track the changes toggle the --track flag.
It is possible to use "--generate-update-payload" as: "ecctl deployment show --generate-update-payload … " to obtain a valid update payload from an existing deployment which can be manually edited in before it is sent as a "--file" flag argument. See "ecctl deployment show --help" for a valid example.
Read more about the deployment definition in ECE Deployment APIs.
ecctl deployment update -f <file definition.json> [flags]
## Same base deployment as the create example, changing cluster_topology[0].zone_count to 3.
$ cat deployment_example_update.json
{
"resources": {
"elasticsearch": [
{
"display_name": "my elasticsearch cluster",
"ref_id": "my-es-cluster",
"plan": {
"deployment_template": {
"id": "default"
},
"elasticsearch": {
"version": "6.8.4"
},
"cluster_topology": [
{
"instance_configuration_id": "data.default",
"memory_per_node": 1024,
"node_count_per_zone": 1,
"node_type": {
"data": true,
"ingest": true,
"master": true,
"ml": false
},
"zone_count": 3
}
]
}
}
]
}
}
$ ecctl deployment update f44c06c3af6f85dac05023cf243f4ab1 -f deployment_example_update.json
...
## Setting --prune-orphans, will cause any non-specified resources to be shut down.
$ ecctl deployment update f44c06c3af6f85dac05023cf243f4ab1 -f deployment_example_update.json --prune-orphans
setting --prune-orphans to "true" will cause any resources not specified in the update request to be removed from the deployment, do you want to continue? [y/n]: y
...
-f, --file string Partial (default) or full JSON file deployment update payload
-h, --help help for update
--hide-pruned-orphans Hides orphaned resources that were shut down (only relevant if --prune-orphans=true)
--prune-orphans When set to true, it will remove any resources not specified in the update request, treating the json file contents as the authoritative deployment definition
--skip-snapshot Skips taking an Elasticsearch snapshot prior to shutting down the deployment
-t, --track Tracks the progress of the performed task
--api-key string API key to use to authenticate (If empty will look for EC_API_KEY environment variable)
--config string Config name, used to have multiple configs in $HOME/.ecctl/<env> (default "config")
--force Do not ask for confirmation
--format string Formats the output using a Go template
--host string Base URL to use
--insecure Skips all TLS validation
--message string A message to set on cluster operation
--output string Output format [text|json] (default "text")
--pass string Password to use to authenticate (If empty will look for EC_PASS environment variable)
--pprof Enables pprofing and saves the profile to pprof-20060102150405
-q, --quiet Suppresses the configuration file used for the run, if any
--region string Elastic Cloud Hosted region
--timeout duration Timeout to use on all HTTP calls (default 30s)
--trace Enables tracing saves the trace to trace-20060102150405
--user string Username to use to authenticate (If empty will look for EC_USER environment variable)
--verbose Enable verbose mode
--verbose-credentials When set, Authorization headers on the request/response trail will be displayed as plain text
--verbose-file string When set, the verbose request/response trail will be written to the defined file
- ecctl deployment - Manages deployments