Open
Conversation
f373f15 to
1f53c5f
Compare
1f53c5f to
587976c
Compare
587976c to
2ddacbf
Compare
2ddacbf to
8928b8f
Compare
8928b8f to
221742b
Compare
221742b to
c9d4f75
Compare
c9d4f75 to
038b626
Compare
038b626 to
7b29abb
Compare
2c596d1 to
1428183
Compare
1428183 to
7512db4
Compare
7512db4 to
feaae80
Compare
feaae80 to
5d27fb0
Compare
5d27fb0 to
5d2bc1f
Compare
5d2bc1f to
7d70a62
Compare
7d70a62 to
e6ed1d8
Compare
e6ed1d8 to
157b614
Compare
157b614 to
dceeac0
Compare
dceeac0 to
446fcbc
Compare
446fcbc to
b62a6ef
Compare
b62a6ef to
abdbfd0
Compare
abdbfd0 to
1c2fffa
Compare
23618f5 to
2af9400
Compare
2af9400 to
58be2ef
Compare
58be2ef to
595f59c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.11.0→0.14.3Release Notes
elastic/terraform-provider-elasticstack (elasticstack)
v0.14.3Compare Source
Changes
elasticstack_fleet_outputdata source. (#1762)elasticstack_elasticsearch_index_template_ilm_attachmentresource to attach ILM policies to Fleet-managed or externally-managed index templates via the@customcomponent template. (#1641)elasticstack_kibana_slotimeslice_metric_indicatorto supportlast_value,cardinality, andstd_deviationaggregations which are valid in the Kibana SLO API but were previously rejected by the provider. (#1749)elasticstack_kibana_security_enable_ruleresource (#1710)elasticstack_elasticsearch_index_aliaswhen indices are unknown at plan time. (#1755)elasticstack_kibana_security_exception_listwhenos_typesare used in Elastic Stack 9.2 (#1740)elasticstack_elasticsearch_security_rolewhendescriptionis empty ("") (#1780)elasticstack_kibana_slowhengroup_byis set to an empty list (#1776)elasticstack_kibana_security_detection_rulewhenthreat_filteris supplied (#1758)elasticstack_fleet_integration_policywhen the policy was updated outside of the Terraform workflow (#1616)v0.14.2Compare Source
Changes
elasticstack_kibana_alerting_ruleto prevent inconsistent state errors caused by API-injected defaults. (#1648)elasticstack_kibana_slowhengoodortotalfields inkql_custom_indicatorare empty or null. (#1729)v0.14.1Compare Source
Changes
elasticstack_kibana_slowhen SLO updates error without a HTTP response. (#1725)elasticstack_kibana_alerting_rulewhenalert_delayis not specified. (#1726)v0.14.0Compare Source
Breaking changes
elasticstack_fleet_integrationspace_idsattribute has been reduced to a singlespace_idThe provider was only considering the first entry in the
space_idsset (#1642). Extending the resource to correctly handle multiple spaces would not make sense as a single Terraform resource. Instead this attribute is being reduced to a single string, with practitioners able to manage the installation of an integration across multiple spaces through multiple instances of this resource.Existing usage of the
space_idsattribute must be migrated tospace_id:becomes:
elasticstack_fleet_integration_policyinput block has changed to a map attribute.The
inputblock in theelasticstack_fleet_integration_policyresource has been restructured into theinputsmap attribute.This transition:
streams_jsonstring. Instead allowing each stream to be defined as it's own object for Terraform drift checking.Existing usage of the
inputblock must be migrated to the attribute syntax. Some examples of this migration can be seen in the changes to the provider automated tests. As a step-by-step guide however:inputblocks are merged together into a singleinputsattributeinput_idattribute is removed, and instead used as the map key when defining an inputstreams_jsonis removed, with the contents becoming astreamsmap attributeCombined, this looks like:
becoming
Changes
elasticstack_elasticsearch_scriptresource (#1637)elasticstack_kibana_alerting_ruleto use plugin framework (#1664)elasticstack_kibana_sloresource to the Terraform plugin framework (#1647)elasticstack_fleet_integration_policywhen moving between a singlepolicy_idand multiplepolicy_ids(#1644)elasticstack_fleet_integration_policy(#1629)elasticstack_fleet_integrationresource:prerelease,ignore_mapping_update_errors(8.11.0+),skip_data_stream_rollover(8.11.0+), andignore_constraints. These parameters provide full control over package installation behavior and enable installation of prerelease (beta, non-GA) packages.elasticstack_fleet_integrationresources (#1608)policy_idattributes inelasticstack_fleet_integration_policyresources (#1594)advanced_settingstoelasticstack_fleet_agent_policyto configure agent logging, CPU limits, and download settings (#1545)elasticstack_elasticsearch_ml_datafeed. (#1579)exceptattributes inelasticstack_elasticsearch_security_role(#1581)elasticstack_kibana_alerting_rule(#1527)advanced_monitoring_optionstoelasticstack_fleet_agent_policyto configure HTTP monitoring endpoint and diagnostics settings (#1537)inputblock to aninputsmap inelasticstack_fleet_integration_policy(#1482)elasticstack_elasticsearch_ml_anomaly_detection_jobimport to be resilient to sparse state valueselasticstack_elasticsearch_ml_datafeed_stateresource withoutstartconfigured is started after being stopped. (#1563)elasticstack_elasticsearch_ml_datafeed_statestartandendtimes are specified in a timezone that is not the server timezoneelasticstack_elasticsearch_ml_datafeed_stateresource withoutstartconfigured is started after being stopped. (#1563)elasticstack_elasticsearch_ml_datafeed_statestartandendtimes where treated by the provider as unix seconds, but by the API as unix milliseconds.elasticstack_fleet_integration_policyto be specified if they differ from integration defaults (#1558)elasticstack_fleet_integration_policyto be specified if they differ from integration defaults (#1593)elasticstack_fleet_agent_policyresources. (#1597)filterparameter for doc_count aggregations (#1636)space_idsto a singlespace_idinelasticstack_fleet_integration(#1645)bearer_tokenauthentication support to Kibana and Fleet provider configurations. Bearer tokens configured in theelasticsearchblock are now propagated tokibanaandfleetblocks as fallback credentials, consistent with the existing behavior forusername,password, andapi_key. New environment variablesKIBANA_BEARER_TOKENandFLEET_BEARER_TOKENare also supported. (#1690)v0.13.1Compare Source
elasticstack_elasticsearch_ml_anomaly_detection_job(#1544)clustersandrun_asattributes inelasticstack_elasticsearch_security_roleresource (#1542)v0.13.0Compare Source
Breaking changes
elasticstack_elasticsearch_index.aliasblock has changed to a set attribute.The
aliasblock in theelasticstack_elasticsearch_indexresource has been moved to an attribute.This transition provides better support for future changes in both the provider and the underlying Terraform framework.
Existing usage of the
aliasblock must be migrated to the attribute syntax. For example:becomes
Changes
elasticstack_kibana_action_connectorfailing with "inconsistent result after apply" when config contains null values (#1524)host_name_formattoelasticstack_fleet_agent_policyto configure host name format (hostname or FQDN) (#1312)elasticstack_kibana_prebuilt_ruleresource (#1296)required_versionstoelasticstack_fleet_agent_policy(#1436)elasticstack_elasticsearch_security_roleresource to Terraform Plugin Framework (#1330)elasticstack_fleet_outputresource would error due to inconsistent state after an ouptut was edited in the Kibana UI (#1506)indexanddata_view_idvalues to both be unknown during planning inelasticstack_kibana_security_detection_rule(#1499).bedrockand.gen-aiconnectors (#1467)solutionattribute inelasticstack_kibana_spacefrom 8.16 (#1486)elasticstack_elasticsearch_aliasresource (#1343)mapping_total_fields_limittoelasticstack_elasticsearch_index(#1494)elasticstack_kibana_default_data_viewresource (#1379)elasticstack_kibana_security_exception_itemresource (#1496)elasticstack_kibana_security_exception_listresource (#1495)elasticstack_kibana_security_listresource (#1489)elasticstack_kibana_security_list_itemresource (#1492)elasticstack_kibana_security_list_data_streamsresource (#1525)v0.12.2Compare Source
elasticstack_elasticsearch_snapshot_lifecyclemetadata type conversion causing terraform apply to fail (#1409)elasticstack_elasticsearch_ml_anomaly_detection_jobresource (#1329)elasticstack_elasticsearch_ml_datafeedresource (#1340)space_idsattribute to all Fleet resources to support space-aware Fleet resource management (#1390)elasticstack_elasticsearch_security_role_mapping(#1441)elasticstack_elasticsearch_ml_job_stateresource (#1337)elasticstack_elasticsearch_ml_datafeed_stateresource (#1422)output_idtoelasticstack_fleet_integration_policyresource (#1445)hostsattribute required inelasticstack_fleet_outputresource (#1450)elasticstack_kibana_security_detection_ruleto properly respectspace_idv0.12.1Compare Source
elasticstack_elasticsearch_role_mappingname. (#1373)indexanddata_view_idis set for relevant Security Detection Rules (#1381)v0.12.0Compare Source
elasticstack_kibana_action_connectorwhenconfigorsecretswas unset in 0.11.17 (#1355)labelsfield toelasticstack_kibana_synthetics_monitorresource for associating key-value pairs with monitors (#1360)elasticstack_kibana_slowhen usingkql_custom_indicatorwith nofilterset. (#1354)threatpropertyqueryproperty not being setindexandfiltersfrequencyanomaly_thresholdfield in anomaly detection rulestimeline_id/timeline_titlefieldsthreat_querynot being provided forthreat_matchulev0.11.19Compare Source
Version 0.11.19 is equivalent to 0.12.1. It is being released to help mitigate impact from 0.11.18 being inadvertently released ahead of schedule. This version contained a breaking change and defects related to internal refactors. While 0.11.19 still contains a breaking change from 0.11.17 it does fix defects (see details below) for any users relying on the latest 0.11.x version.
elasticstack_elasticsearch_role_mappingname. (#1373)indexanddata_view_idis set for relevant Security Detection Rules (#1381)elasticstack_kibana_action_connectorwhenconfigorsecretswas unset in 0.11.17 (#1355)labelsfield toelasticstack_kibana_synthetics_monitorresource for associating key-value pairs with monitors (#1360)elasticstack_kibana_slowhen usingkql_custom_indicatorwith nofilterset. (#1354)threatpropertyqueryproperty not being setindexandfiltersfrequencyanomaly_thresholdfield in anomaly detection rulestimeline_id/timeline_titlefieldsthreat_querynot being provided forthreat_matchulev0.11.18Compare Source
Breaking changes
The
sslfield on theelasticstack_fleet_outputresource has been changes from a block to an attribute. This change ensures ongoing consistency within the resource schema for this resource, and aligns with Terraform best practices.Existing
elasticstack_fleet_outputresources definingsslwill have to update the declaration to an attribute style. For example:becomes
Changes
elasticstack_kibana_security_detection_ruleresource. (#1290)elasticstack_kibana_export_saved_objectsdata source (#1293)elasticstack_kibana_maintenance_windowresource. (#1224)solutionfield inelasticstack_kibana_spaceresource and data source (#1102)slo_idvalidation toelasticstack_kibana_slo(#1221)ignore_missing_component_templatestoelasticstack_elasticsearch_index_template(#1206)elasticstack_elasticsearch_enrich_policyresource and data source to Terraform Plugin Framework (#1220)elasticstack_elasticsearch_security_api_key(#1252)elasticstack_fleet_integration(#1255). This fixes an issue where it was impossible to upgrade integrations which are used by an integration policy.namespaceattribute toelasticstack_kibana_synthetics_monitorresource to support setting data stream namespace independently fromspace_id(#1247)connector_idinelasticstack_kibana_action_connector. This attribute already existed, but was being ignored by the provider. Setting the attribute will return an error in Elastic Stack v8.8 and lower since creating a connector with an explicit ID is not supported. (1260)elasticstack_kibana_action_connectorto the Terraform plugin framework (#1269)elasticstack_elasticsearch_security_role_mappingresource and data source to Terraform Plugin Framework (#1279)inactivity_timeoutinelasticstack_fleet_agent_policy(#641)elasticstack_elasticsearch_scriptresource to Terraform Plugin Framework (#1297)kafkaoutput types inelasticstack_fleet_output(#1302)prevent_initial_backfilltoelasticstack_kibana_slo(#1071)data_view_idin theelasticstack_kibana_sloresource (#1305)unenrollment_timeoutinelasticstack_fleet_agent_policy(#1169)allow_restricted_indicesinelasticstack_elasticsearch_security_api_key(#1315)nilreference in kibana synthetics API client in case of response errors (#1320)agent_policy_idsinelasticstack_fleet_integration_policy(#1131)v0.11.17Compare Source
elasticstack_apm_agent_configurationresource (#1196)timeslice_metric_indicatorinelasticstack_kibana_slo(#1195)elasticstack_elasticsearch_ingest_processor_reroutedata source (#678)supports_agentlesstoelasticstack_fleet_agent_policy(#1197)master_timeoutwhen targeting Serverless projects (#1207)v0.11.16Compare Source
headersfor the provider connection (#1057)elasticstack_elasticsearch_system_userresource to Terraform plugin framework (#1154)endpointconfiguration support for snapshot repository setup (#1158)descriptiontoelasticstack_kibana_security_role(#1172)elasticstack_kibana_synthetics_parameterresource (#1155)v0.11.15Compare Source
global_data_tagsto fleet agent policies. (#1044)v0.11.14Compare Source
max_primary_shard_docscondition to ILM rollover (#845)data_view.field_formats.params(#1001)elasticstack_kibana_action_connector.secretsas sensitive. (#1045)v0.11.13Compare Source
elasticstack_kibana_synthetics_monitor(#967).v0.11.12Compare Source
Breaking changes
group_byattribute of theelasticstack_kibana_sloresource from a String to a list of Strings. Any existing SLO defintions will need to updategroup_by = "field"togroup_by = ["field"].Changes
elasticstack_elasticsearch_security_roledata sources. (#884)elasticstack_fleet_agent_policyresources due to 'changing' policy ids (#885)elasticstack_kibana_alerting_ruleresources with only one ofkqlortimeframeattributes set (#886)elasticstack_kibana_data_viewresource to match the styling of Fleet resources. (#881)v0.11.11Compare Source
elasticstack_kibana_alerting_ruleto be used without Elasticsearch being configured. (#869)elasticstack_elasticsearch_data_stream_lifecycle(#838)v0.11.10Compare Source
elasticstack_elasticsearch_security_api_keywhen supported by the backing cluster (#843)throttle, andintervalattributes inelasticstack_kibana_alerting_ruleallowing all Elastic duration values (#846)elasticstack_elasticsearch_indicesdata source. (#842)v0.11.9Compare Source
Breaking changes
include_type_namefrom theelasticstack_elasticsearch_indexresource. This parameter has been deprecated from 7.0, with indices restricted to a single type since 6.0. (#832)Changes
elasticstack_fleet_outputfordefault_integrationsanddefault_monitoring. (#841)elasticstack_fleet_integration_policyresource. (#821)elasticstack_kibana_synthetics_monitormonitor locations (#823).geminiconnector type for Kibana action connectors (#819)aliasesattribute toelasticstack_elasticsearch_transformresource. (#825)descriptionattribute toelasticstack_elasticsearch_security_roleresource. (#824)elasticstack_kibana_synthetics_monitormonitor locations (#823elasticstack_elasticsearch_index_templatedata source (#828)v0.11.8Compare Source
elasticstack_elasticsearch_api_keyresource. (#789)sys_monitoringinelasticstack_fleet_agent_policy(#792)elasticstack_fleet_agent_policy,elasticstack_fleet_integration(both), andelasticstack_fleet_server_hostto terraform-plugin-framework (#785)elasticstack_fleet_integration_policyto terraform-plugin-framework. Fix drift in integration policy secrets. (#797)elasticstack_fleet_outputto terraform-plugin-framework. (#811)v0.11.7Compare Source
alerts_filterfield to theactionsin the Create Rule API (#774)alert_delayfield to the Create Rule API (#715)lifecycletemplate settings (#724)elasticstack_kibana_action_connectorreads a non-existant connector (#729)remote_indiciestoelasticstack_elasticsearch_security_role&elasticstack_kibana_security_role(#723)[#723]elasticstack_kibana_import_saved_objects(#738)space_idparameter from private locations to fix inconsistent state forelasticstack_kibana_synthetics_private_locationspace_id(#733)Frequencyfield to the Create Rule API (#753)elasticstack_elasticsearch_snapshot_repositorydoes not exist (#758)remote_indiciestoelasticstack_elasticsearch_security_api_key(#766)[#766]icmpandbrowsermonitor types toelasticstack_kibana_synthetics_monitorresource (#772)[#772]elasticstack_fleet_enrollment_tokensto terraform-plugin-framework (#778)v0.11.6Compare Source
elasticstack_kibana_spacesdata source (#682)v0.11.5Compare Source
idfor Fleet outputs and servers (#666)elasticstack_fleet_enrollment_tokensreturning empty tokens in some case (#683)restrictioninelasticstack_elasticsearch_security_api_keyrole definitions (#577)group_byattribute in thekibana_sloresource to be compatible with versions 8.14+ (#701)v0.11.4Compare Source
Breaking changes
titleattribute is now required in the elasticstack_kibana_data_view resource. In practice the resource didn't work without this set, the schema now enforces it's correctly configured.Fixed
idand running against Kibana 8.14 (#663)v0.11.3Compare Source
Fixed
elasticstack_elasticsearch_templateorelasticstack_elasticsearch_component_templateincludes an emptytemplate(template {}) block. (#598)elasticstack_kibana_spaceto attempt the space recreation ifinitialsandcolorare not provided. (#606)elasticstack_kibana_data_viewwhen afield_formatdoes not include apattern. (#619)idattribute forelasticstack_kibana_sloresources was ignored by renaming the attribute toslo_id. (#622)rule_idattribute forelasticstack_kibana_alerting_rulewas ignored. (#626)Added
v0.11.2Compare Source
Fixed
ca_certsvalue. (#585)v0.11.1Compare Source
Version 0.11.19 is equivalent to 0.12.1. It is being released to help mitigate impact from 0.11.18 being inadvertently released ahead of schedule. This version contained a breaking change and defects related to internal refactors. While 0.11.19 still contains a breaking change from 0.11.17 it does fix defects (see details below) for any users relying on the latest 0.11.x version.
elasticstack_elasticsearch_role_mappingname. (#1373)indexanddata_view_idis set for relevant Security Detection Rules (#1381)elasticstack_kibana_action_connectorwhenconfigorsecretswas unset in 0.11.17 (#1355)labelsfield toelasticstack_kibana_synthetics_monitorresource for associating key-value pairs with monitors (#1360)elasticstack_kibana_slowhen usingkql_custom_indicatorwith nofilterset. (#1354)threatpropertyqueryproperty not being setindexandfiltersfrequencyanomaly_thresholdfield in anomaly detection rulestimeline_id/timeline_titlefieldsthreat_querynot being provided forthreat_matchuleConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.