You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: 429 add debug mode (#430)
* feat: 429 add debug mode
* clean up
* Add const comment
* fix: make build gcflags issue
* fix(deps): update module github.com/stretchr/testify to v1.7.1 (#456)
Co-authored-by: Renovate Bot <[email protected]>
* chore(deps): update actions/checkout action to v3 (#451)
Co-authored-by: Renovate Bot <[email protected]>
* Update CHANGELOG.md and NOTICE
* chore(deps): update endbug/add-and-commit action to v9 (#454)
Co-authored-by: Renovate Bot <[email protected]>
* chore(deps): update actions/setup-go action to v3 (#448)
Co-authored-by: Renovate Bot <[email protected]>
* fix(deps): update module github.com/go-openapi/runtime to v0.23.2 (#452)
Co-authored-by: Renovate Bot <[email protected]>
* Update CHANGELOG.md and NOTICE
* chore(deps): update actions/cache action to v3 (#458)
Co-authored-by: Renovate Bot <[email protected]>
* chore(deps): update peterjgrainger/action-create-branch action to v2.2.0 (#461)
Co-authored-by: Renovate Bot <[email protected]>
* chore(deps): update hashicorp/setup-terraform action to v2 (#470)
Co-authored-by: Renovate Bot <[email protected]>
* Update CHANGELOG.md and NOTICE
* Include a note in the import docs mentioning that the credentials will not be available. (#464)
* fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.11.0 (#453)
* fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.11.0
* Move debug mode to ServeOpts
Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: Toby Brain <[email protected]>
* Update CHANGELOG.md and NOTICE
* Update CHANGELOG.md and NOTICE
* Update CHANGELOG.md and NOTICE
* Allow zero sized topology elements when autoscaling is enabled (#472)
* Allow zero sized topology elements when autoscaling is enabled
* Fix acceptance test
* fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.14.0 (#475)
Co-authored-by: Renovate Bot <[email protected]>
* Provide a default for the autoscaling min/max resource (#477)
* Provide a default for the autoscaling min/max resource
This fixes an issue when specifying an autoscaling min/max when there is no corresponding min/max defined in the deployment template
* PR feedback
* fix(deps): update module github.com/elastic/cloud-sdk-go to v1.9.0 (#480)
Co-authored-by: Renovate Bot <[email protected]>
* Update CHANGELOG.md and NOTICE
* Update CHANGELOG.md and NOTICE
* Update CHANGELOG.md and NOTICE
* fix(deps): update module github.com/go-openapi/runtime to v0.24.0 (#457)
Co-authored-by: Renovate Bot <[email protected]>
* Update CHANGELOG.md and NOTICE
* Update CHANGELOG.md and NOTICE
* Update CHANGELOG.md and NOTICE
* Update CHANGELOG.md and NOTICE
* fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.15.0 (#481)
Co-authored-by: Renovate Bot <[email protected]>
* Update CHANGELOG.md and NOTICE
* Fixes arguments for add-and-commit (#479)
* Fixes arguments for add-and-commit
These were changed in v8. https://github.com/EndBug/add-and-commit/blob/main/CHANGELOG.md#800---2022-01-20
* Change branch property on the minor bump.
* Fetch full repo history when checking out.
make minor inspects the current git tags before bumping. Without fetching those tags, the task fails.
* Add changelog
* Download the Terraform CLI for acceptance tests
This should be temporary, the automated download is currently failing due to an unexpected content-type on the response
Co-authored-by: luigibk <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: elasticcloudclients <[email protected]>
main: Adds debug mode. Instructions for debugging the provider can be found in the [CONTRIBUTING](https://github.com/elastic/terraform-provider-ec/blob/master/CONTRIBUTING.md#debugging) docs.
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).
3
+
```
4
+
5
+
```release-note:breaking-change
6
+
To support unsized topology elements when autoscaling is enabled, we now include all potentially sized topology elements in the `ec_deployment` state.
7
+
When autoscaling is enabled, we now require that all autoscaleable topology elements be defined in the `elasticsearch` block of an `ec_deployment` resource.
8
+
If a topology element is not defined, Terraform will report a persistent diff during a plan/apply.
Provide a default for autoscaling min_size_resource and max_size_resource attributes. This avoids an API error when there is no corresponding value in the deployment template.
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -127,3 +127,25 @@ $ make build
127
127
```
128
128
129
129
You can also use the `make install` target if you wish. This target will install the binary and move it to your Terraform plugin location.
130
+
131
+
### Debugging
132
+
133
+
This provider supports debugger-based debugging as described in the related [Terraform SDK documentation](https://www.terraform.io/plugin/sdkv2/debugging#debugger-based-debugging). To build a provider with the necessary Go compiler flags run:
134
+
135
+
```console
136
+
$ make build GCFLAGS='-gcflags="all=-N -l"'
137
+
```
138
+
139
+
To run the provider and connect it to your debugger run:
which you can export or use to prefix every Terraform command. If that variable is not printed as soon as you connect your debugger, pausing execution and restarting it might do the trick.
Copy file name to clipboardExpand all lines: docs/resources/ec_deployment.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -232,7 +232,7 @@ The required `elasticsearch` block supports the following arguments:
232
232
233
233
*`topology` - (Optional) Can be set multiple times to compose complex topologies.
234
234
*`ref_id` - (Optional) Can be set on the Elasticsearch resource. The default value `main-elasticsearch` is recommended.
235
-
*`config` (Optional) Elasticsearch settings applied to all topologies unless overridden in the `topology` element.
235
+
*`config` (Optional) Elasticsearch settings applied to all topologies unless overridden in the `topology` element.
236
236
*`remote_cluster` (Optional) Elasticsearch remote clusters to configure for the Elasticsearch resource. Can be set multiple times.
237
237
*`snapshot_source` (Optional) Restores data from a snapshot of another deployment.
238
238
*`extension` (Optional) Custom Elasticsearch bundles or plugins. Can be set multiple times.
@@ -335,7 +335,7 @@ The optional `kibana` block supports the following arguments:
335
335
*`topology` - (Optional) Can be set multiple times to compose complex topologies.
336
336
*`elasticsearch_cluster_ref_id` - (Optional) This field references the `ref_id` of the deployment Elasticsearch cluster. The default value `main-elasticsearch` is recommended.
337
337
*`ref_id` - (Optional) Can be set on the Kibana resource. The default value `main-kibana` is recommended.
338
-
*`config` (Optional) Kibana settings applied to all topologies unless overridden in the `topology` element.
338
+
*`config` (Optional) Kibana settings applied to all topologies unless overridden in the `topology` element.
339
339
340
340
##### Topology
341
341
@@ -362,7 +362,7 @@ The optional `integrations_server` block supports the following arguments:
362
362
*`topology` - (Optional) Can be set multiple times to compose complex topologies.
363
363
*`elasticsearch_cluster_ref_id` - (Optional) This field references the `ref_id` of the deployment Elasticsearch cluster. The default value `main-elasticsearch` is recommended.
364
364
*`ref_id` - (Optional) Can be set on the Integrations Server resource. The default value `main-integrations_server` is recommended.
365
-
*`config` (Optional) Integrations Server settings applied to all topologies unless overridden in the `topology` element.
365
+
*`config` (Optional) Integrations Server settings applied to all topologies unless overridden in the `topology` element.
366
366
367
367
##### Topology
368
368
@@ -386,7 +386,7 @@ The optional `apm` block supports the following arguments:
386
386
*`topology` - (Optional) Can be set multiple times to compose complex topologies.
387
387
*`elasticsearch_cluster_ref_id` - (Optional) This field references the `ref_id` of the deployment Elasticsearch cluster. The default value `main-elasticsearch` is recommended.
388
388
*`ref_id` - (Optional) Can be set on the APM resource. The default value `main-apm` is recommended.
389
-
*`config` (Optional) APM settings applied to all topologies unless overridden in the `topology` element.
389
+
*`config` (Optional) APM settings applied to all topologies unless overridden in the `topology` element.
390
390
391
391
##### Topology
392
392
@@ -414,7 +414,7 @@ The optional `enterprise_search` block supports the following arguments:
414
414
*`topology` - (Optional) Can be set multiple times to compose complex topologies.
415
415
*`elasticsearch_cluster_ref_id` - (Optional) This field references the `ref_id` of the deployment Elasticsearch cluster. The default value `main-elasticsearch` is recommended.
416
416
*`ref_id` - (Optional) Can be set on the Enterprise Search resource. The default value `main-enterprise_search` is recommended.
417
-
*`config` (Optional) Enterprise Search settings applied to all topologies unless overridden in the `topology` element.
417
+
*`config` (Optional) Enterprise Search settings applied to all topologies unless overridden in the `topology` element.
418
418
419
419
##### Topology
420
420
@@ -488,6 +488,8 @@ In addition to all the arguments above, the following attributes are exported:
488
488
489
489
## Import
490
490
491
+
~> **Note on deployment credentials** The `elastic` user credentials are only available whilst creating a deployment. Importing a deployment will not import the `elasticsearch_username` or `elasticsearch_password` attributes.
492
+
491
493
~> **Note on legacy (pre-slider) deployments** Importing deployments created prior to the addition of sliders in ECE or ESS, without being migrated to use sliders, is not supported.
492
494
493
495
~> **Note on pre 6.6.0 deployments** Importing deployments with a version lower than `6.6.0` is not supported.
0 commit comments