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
Describe the bug
I am trying to import an elasticstack_fleet_output which always fails and I do not have any idea what I am doing wrong. According to the docs, it is as simple as configuring the kibana connection and executing terraform import elasticstack_fleet_output.my_output <space id>/<output id>
Expected behavior
I would expect that the output is successfully imported.
Debug output
When running terraform import -var-file="test.tfvars" elasticstack_fleet_output.default_output default/fleet-default-output, I get the following HTTP404 error:
2023-06-27T09:46:46.963+0200 [DEBUG] provider.terraform-provider-elasticstack_v0.6.2.exe: Fleet API Request Details:
---[ REQUEST ]---------------------------------------
GET /api/fleet/outputs/ HTTP/1.1
Host: elastichost:8220
User-Agent: Go-http-client/1.1
Authorization: ***********************************************
Accept-Encoding: gzip
2023-06-27T09:46:47.028+0200 [DEBUG] provider.terraform-provider-elasticstack_v0.6.2.exe: Fleet API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/1.1 404 Not Found
Content-Length: 19
Content-Type: text/plain; charset=utf-8
Date: Tue, 27 Jun 2023 07:46:47 GMT
X-Content-Type-Options: nosniff
404 page not found
I don't know why the provider tried to connect to the fleet server when the docs say that Kibana is required, so I temporarily removed the fleet server. After this, I get:
Maybe, only the trailing slash is wrong? The same call fails in Kibana DevTools: GET kbn:api/fleet/outputs/
But this succeeds: GET kbn:api/fleet/outputs
Versions (please complete the following information):
OS: [e.g. Linux] Terraform - Windows, Elastic Stack - Linux
Terraform Version 1.5.0
Provider version 0.6.2
Elasticsearch Version 8.7.0
The text was updated successfully, but these errors were encountered:
Describe the bug
I am trying to import an
elasticstack_fleet_output
which always fails and I do not have any idea what I am doing wrong. According to the docs, it is as simple as configuring the kibana connection and executingterraform import elasticstack_fleet_output.my_output <space id>/<output id>
To Reproduce
My Connection config is:
My output config is:
Expected behavior
I would expect that the output is successfully imported.
Debug output
When running
terraform import -var-file="test.tfvars" elasticstack_fleet_output.default_output default/fleet-default-output
, I get the following HTTP404 error:I don't know why the provider tried to connect to the fleet server when the docs say that Kibana is required, so I temporarily removed the fleet server. After this, I get:
Maybe, only the trailing slash is wrong? The same call fails in Kibana DevTools:
GET kbn:api/fleet/outputs/
But this succeeds:
GET kbn:api/fleet/outputs
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: