BREAKING CHANGES:
- To support unsized topology elements when autoscaling is enabled, we now include all potentially sized topology elements in the
ec_deployment
state. When autoscaling is enabled, we now require that all autoscaleable topology elements be defined in theelasticsearch
block of anec_deployment
resource. If a topology element is not defined, Terraform will report a persistent diff during a plan/apply. (#472)
BUG FIXES:
- Allow zero sized topology elements when autoscaling is enabled. Previously, including an ML topology block would result in a persistent diff loop when the underlying ML tier remained disabled by autoscaling (i.e no ML jobs were enabled). (#472)
- main: Adds debug mode. Instructions for debugging the provider can be found in the CONTRIBUTING docs. (#430)
FEATURES:
- resource/integrations_server: Adds a new
ec_deployment_integrations_server
resource to the deployment, which has been introduced in Elastic Stack 8.0.0 (#425)
FEATURES:
- New Resource: resource/ec_deployment_elasticsearch_keystore: Adds a new
ec_deployment_elasticsearch_keystore
resource which allows creating and updating Elasticsearch keystore settings. (#364)
ENHANCEMENTS:
- datasource/ec_deployments: Adds four new fields,
deployments.#.elasticsearch_ref_id
,deployments.#.kibana_ref_id
,deployments.#.apm_ref_id
,deployments.#.enterprise_search_ref_id
to the data source. (#380) - datasource/ec_deployments: Adds two new fields,
deployments.#.name
anddeployments.#.alias
to the data source. (#362) - resource/ec_deployment_traffic_filter: Add support for Azure Private Link traffic rules. (#340)
BUG FIXES:
- resource/ec_deployment: Changes the
ec_deployment.elasticsearch.remote_cluster
block toschema.TypeSet
to allow specifying the blocks in any order. (#368) - resource/ec_deployment: Fix bug where setting any of the
elasticsearch.config.user_settings_* = null
would result in a provider panic. (#355) - resource/ec_deployment: Fix bug where some of the settings that were set by the UI were unset by the Terraform provider. See #214 for more details on the bug report. (#361)
- resource/ec_deployment: Fix bug where the deployment alias is ignored. (#341)
- resource/ec_deployment: Fixed a bug that affects partial version upgrades. During an upgrade only a subset of resources would upgrade successfully, but the
version
argument value updated as if all resources were upgraded. Attempts to retry the upgrade would fail since the version difference was not detected. (#371)
BUG FIXES:
- resource/ec_deployment: Fixes a bug which made ec_deployment version upgrades return an API error stating:
node_roles must be provided for all elasticsearch topology elements or for none of them
. (#329)
FEATURES:
- datasource/ec_deployment: Add a new size parameter to allow modifying the default size of
10
in the number of deployments returned by the search request. (#300) - resource/ec_deployment: Supports Autoscaling via two new settings:
elasticsearch.autoscale
("true"
or"false"
) and anelasticsearch.topology.autoscaling
block to modify the default autoscaling policies. For more information, refer to the documentation examples. (#296) - resource/ec_deployment: Supports deployment aliases in a new top level field
alias
. (#298)
ENHANCEMENTS:
- resource/ec_deployment: Retries the Shutdown API call on the destroy operation up to 3 times when the transient "Timeout Exceeded" error returned from the Elastic Cloud API. (#308)
BUG FIXES:
- datasource/ec_deployments: Properly sorts the datasource results by ID. (#322)
- resource/ec_deployment: Fixes a bug which made restoring a snapshot to an existing deployment fail. (#309)
- resource/ec_deployment: Handles account and external trust settings, fixing a bug where the default trust settings are unset and allowing users to set up their own trust settings for an Elasticsearch cluster. (#324)
BUG FIXES:
- resource/ec_deployment: Fixes a bug where specifying a dedicated tier for master or coordinating nodes would result in an API stating that the master or ingest roles are duplicated. (#291)
BREAKING CHANGES:
- ec_deployment: Removes the
apm.version
,enterprise_search.version
andkibana.version
computed fields. (#266) - resource/ec_deployment: Adds support for the newly added data tiers. A new required field
elasticsearch.toplogy.id
has been added, it needs to be set to all explicit Elasticsearch topology declarations. Anode_roles
computed field has been added to the schema and cannot be overridden by the user, versions>=7.10.0
will be automatically migrated by the provider to usenode_roles
from thenode_type_*
settings, these will be removed from the state. Whennode_type_*
fields are explicitly set in the terraform configuration they need to be unset manually by the user. Additionally, it removes theelasticsearch.version
computed field. (#253)
FEATURES:
- New Resource: resource/ec_extension: Add a new resource
ec_extension
which allows users to mange custom Elasticsearch bundles and plugins (#216)
ENHANCEMENTS:
- datasource/ec_deployment: Adds the tag attribute to the
ec_deployment
datasource (#244) - datasource/ec_deployments: Allows filtering deployments by their associated tags (#248)
- resource/ec_deployment: Add tags key / value map (#218)
- resource/ec_deployment: Adds a new
elasticsearch.extension
block which can be used to enable custom Elasticsearch bundles or plugins that have previously been uploaded. (#264)
BUG FIXES:
- datasource/ec_deployment: Fixes bug where the datasource was persisting zero sized topology elements in the state (#242)
- datasource/ec_deployments: Fixes bug where queries containing a hyphens wouldn't work as expected (#241)
- go/build: Fixes bug where the api user agent wasn't stripped of its
-dev
tag prior to releasing (#235) - resource/ec_traffic_filter: Fixes bug where having a traffic filter with a multiple rules will cause an infinite diff due to ordering (#208)
NOTES
The Elastic Cloud Terraform provider allows you to provision Elastic Cloud deployments on any Elastic Cloud platform, whether it’s Elasticsearch Service or Elastic Cloud Enterprise.
This functionality is in beta and is subject to change. The design and code are less mature than official GA features and are being provided as-is with no warranties.
FEATURES