Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] cannot import existing elasticstack_kibana_data_view #768

Open
jelmokri opened this issue Sep 12, 2024 · 0 comments
Open

[Bug] cannot import existing elasticstack_kibana_data_view #768

jelmokri opened this issue Sep 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jelmokri
Copy link

Hello everyone,

we are migrating our backup to terraform and try to do it for dataview.

When we try to bind our already existing data view on our cluster and the terrafrom ressource, terraform don't find existing object with following error
│ Error: Cannot import non-existent remote object

│ While attempting to import an existing object to
│ "elasticstack_kibana_data_view.everything", the provider detected that no
│ object exists with the given id. Only pre-existing objects can be imported;
│ check that the id is correct and that it is associated with the provider's
│ configured region or endpoint, or use "terraform apply" to create a new
│ remote object for this resource.

We use following command to do it as mentionned on the doc :(https://registry.terraform.io/providers/elastic/elasticstack/latest/docs/resources/kibana_data_view)

terraform import elasticstack_kibana_data_view.my_data_view /
terraform import elasticstack_kibana_data_view.everything default/everything

In my cluster, I have a data view name Everything with id everything on the default space which id is default.

Is it bug ? or I don't import it well ?

@jelmokri jelmokri added the bug Something isn't working label Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant