Skip to content

Commit ba13d09

Browse files
authored
Merge branch 'main' into copilot/fix-1290-2
2 parents 156dfc4 + e29b951 commit ba13d09

File tree

429 files changed

+14948
-6736
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

429 files changed

+14948
-6736
lines changed

.buildkite/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
steps:
22
- label: Release
33
agents:
4-
image: "golang:1.25.0@sha256:5502b0e56fca23feba76dbc5387ba59c593c02ccc2f0f7355871ea9a0852cebe"
4+
image: "golang:1.25.1@sha256:bb979b278ffb8d31c8b07336fd187ef8fafc8766ebeaece524304483ea137e96"
55
cpu: "16"
66
memory: "24G"
77
ephemeralStorage: "20G"

.github/copilot-instructions.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,21 @@ Carefully read the issue and think hard about a plan to solve it before coding.
5959
- Write additional tests if needed to capture important behaviors or edge cases.
6060
- Ensure all tests pass before finalizing.
6161

62+
### 6.1 Acceptance Testing Requirements
63+
When running acceptance tests (`make testacc`), ensure the following:
64+
65+
66+
- **Environment Variables** - The following environment variables are required for acceptance tests:
67+
- `ELASTICSEARCH_ENDPOINTS` (default: http://localhost:9200)
68+
- `ELASTICSEARCH_USERNAME` (default: elastic)
69+
- `ELASTICSEARCH_PASSWORD` (default: password)
70+
- `KIBANA_ENDPOINT` (default: http://localhost:5601)
71+
- `TF_ACC` (must be set to "1" to enable acceptance tests)
72+
- **Ensure a valid environment if using `go test`** - Check if the required environment variables are set, if not use the defaults specified above.
73+
- **Always finish with `make testacc`** - This will run all tests. Make sure all tests pass before considering a task complete.
74+
- **Pre-set Environment Variables** - Default environment variables are configured in the Makefile. If these defaults are suitable for your testing environment, `make testacc` will work directly without additional setup
75+
- **Docker Environment** - For isolated testing with guaranteed environment setup, use `make docker-testacc` which starts Elasticsearch and Kibana containers automatically
76+
6277
## 7. Final Verification
6378
- Confirm the root cause is fixed.
6479
- Review your solution for logic correctness and robustness.

.github/workflows/copilot-setup-steps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
steps:
2626
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
27-
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
27+
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
2828
with:
2929
go-version-file: 'go.mod'
3030
cache: true

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
timeout-minutes: 5
2020
steps:
2121
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
22-
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
22+
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
2323
with:
2424
go-version-file: 'go.mod'
2525
cache: true
@@ -35,7 +35,7 @@ jobs:
3535
runs-on: ubuntu-latest
3636
steps:
3737
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
38-
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
38+
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
3939
with:
4040
go-version-file: 'go.mod'
4141
cache: true
@@ -130,7 +130,7 @@ jobs:
130130
- '9.0.3'
131131
steps:
132132
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
133-
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
133+
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
134134
with:
135135
go-version-file: 'go.mod'
136136
cache: true

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,15 @@
1010
- Add support for managing cross_cluster API keys in `elasticstack_elasticsearch_security_api_key` ([#1252](https://github.com/elastic/terraform-provider-elasticstack/pull/1252))
1111
- Allow version changes without a destroy/create cycle with `elasticstack_fleet_integration` ([#1255](https://github.com/elastic/terraform-provider-elasticstack/pull/1255)). This fixes an issue where it was impossible to upgrade integrations which are used by an integration policy.
1212
- Add `namespace` attribute to `elasticstack_kibana_synthetics_monitor` resource to support setting data stream namespace independently from `space_id` ([#1247](https://github.com/elastic/terraform-provider-elasticstack/pull/1247))
13+
- Support setting an explit `connector_id` in `elasticstack_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](https://github.com/elastic/terraform-provider-elasticstack/pull/1260))
14+
- Migrate `elasticstack_kibana_action_connector` to the Terraform plugin framework ([#1269](https://github.com/elastic/terraform-provider-elasticstack/pull/1269))
1315
- Migrate `elasticstack_elasticsearch_security_role_mapping` resource and data source to Terraform Plugin Framework ([#1279](https://github.com/elastic/terraform-provider-elasticstack/pull/1279))
16+
- Add support for `inactivity_timeout` in `elasticstack_fleet_agent_policy` ([#641](https://github.com/elastic/terraform-provider-elasticstack/issues/641))
17+
- Add support for `prevent_initial_backfill` to `elasticstack_kibana_slo` ([#1071](https://github.com/elastic/terraform-provider-elasticstack/pull/1071))
18+
- [Refactor] Regenerate the SLO client using the current OpenAPI spec ([#1303](https://github.com/elastic/terraform-provider-elasticstack/pull/1303))
19+
- Add support for `data_view_id` in the `elasticstack_kibana_slo` resource ([#1305](https://github.com/elastic/terraform-provider-elasticstack/pull/1305))
20+
- Add support for `unenrollment_timeout` in `elasticstack_fleet_agent_policy` ([#1169](https://github.com/elastic/terraform-provider-elasticstack/issues/1169))
21+
- Handle default value for `allow_restricted_indices` in `elasticstack_elasticsearch_security_api_key` ([#1315](https://github.com/elastic/terraform-provider-elasticstack/pull/1315))
1422

1523
## [0.11.17] - 2025-07-21
1624

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ docker-clean: ## Try to remove provisioned nodes and assigned network
225225

226226
.PHONY: docs-generate
227227
docs-generate: tools ## Generate documentation for the provider
228-
@ go tool github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs
228+
@ go tool github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs generate --provider-name terraform-provider-elasticstack
229229

230230

231231
.PHONY: gen
@@ -350,7 +350,7 @@ generate-slo-client: tools ## generate Kibana slo client
350350
-o /local/generated/slo \
351351
--type-mappings=float32=float64
352352
@ rm -rf generated/slo/go.mod generated/slo/go.sum generated/slo/test
353-
@ go fmt ./generated/...
353+
@ go fmt ./generated/slo/...
354354

355355
.PHONY: generate-clients
356356
generate-clients: generate-alerting-client generate-slo-client generate-connectors-client ## generate all clients

docs/data-sources/elasticsearch_enrich_policy.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1+
12
---
2-
subcategory: "Enrich"
3+
# generated by https://github.com/hashicorp/terraform-plugin-docs
34
page_title: "elasticstack_elasticsearch_enrich_policy Data Source - terraform-provider-elasticstack"
5+
subcategory: "Enrich"
46
description: |-
5-
Returns information about an enrich policy. See: https://www.elastic.co/guide/en/elasticsearch/reference/current/get-enrich-policy-api.html
7+
Returns information about an enrich policy. See the enrich policy API documentation https://www.elastic.co/guide/en/elasticsearch/reference/current/get-enrich-policy-api.html for more details.
68
---
79

8-
# Data Source: elasticstack_elasticsearch_enrich_policy
10+
# elasticstack_elasticsearch_enrich_policy (Data Source)
911

10-
Returns information about an enrich policy. See: https://www.elastic.co/guide/en/elasticsearch/reference/current/get-enrich-policy-api.html
12+
Returns information about an enrich policy. See the [enrich policy API documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/get-enrich-policy-api.html) for more details.
1113

1214
## Example Usage
1315

docs/data-sources/elasticsearch_index_template.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1+
12
---
3+
# generated by https://github.com/hashicorp/terraform-plugin-docs
4+
page_title: "elasticstack_elasticsearch_index_template Data Source - terraform-provider-elasticstack"
25
subcategory: "Index"
3-
layout: ""
4-
page_title: "Elasticstack: elasticstack_elasticsearch_index_template Data Source"
56
description: |-
6-
Retrieves index template.
7+
Retrieves information about an existing index template definition. See, https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-template.html
78
---
89

9-
# Data Source: elasticstack_elasticsearch_index_template
10+
# elasticstack_elasticsearch_index_template (Data Source)
1011

11-
Use this data source to retrieve information about existing Elasticsearch index templates. See, https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-template.html
12+
Retrieves information about an existing index template definition. See, https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-template.html
1213

1314
## Example Usage
1415

docs/data-sources/elasticsearch_indices.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1+
12
---
3+
# generated by https://github.com/hashicorp/terraform-plugin-docs
4+
page_title: "elasticstack_elasticsearch_indices Data Source - terraform-provider-elasticstack"
25
subcategory: "Index"
3-
layout: ""
4-
page_title: "Elasticstack: elasticstack_elasticsearch_indices Data Source"
56
description: |-
6-
Retrieves indices.
7+
Retrieves information about existing Elasticsearch indices. See: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-index.html
78
---
89

9-
# Data Source: elasticstack_elasticsearch_indices
10+
# elasticstack_elasticsearch_indices (Data Source)
1011

11-
Use this data source to retrieve and get information about existing Elasticsearch indices. See, https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-index.html
12+
Retrieves information about existing Elasticsearch indices. See: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-index.html
1213

1314
## Example Usage
1415

docs/data-sources/elasticsearch_info.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1+
12
---
2-
subcategory: "Cluster"
3-
layout: ""
4-
page_title: "Elasticstack: elasticstack_elasticsearch_info Data Source"
3+
# generated by https://github.com/hashicorp/terraform-plugin-docs
4+
page_title: "elasticstack_elasticsearch_info Data Source - terraform-provider-elasticstack"
5+
subcategory: "Elasticsearch"
56
description: |-
6-
Gets information about the Elasticsearch cluster.
7+
Gets information about the Elastic cluster.
78
---
89

9-
# Data Source: elasticstack_elasticsearch_info
10+
# elasticstack_elasticsearch_info (Data Source)
1011

11-
This data source provides the information about the configured Elasticsearch cluster
12+
Gets information about the Elastic cluster.
1213

1314
## Example Usage
1415

0 commit comments

Comments
 (0)