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
appending that edit part on just to tinker with the dashboard. The terraform plan was successful and just shows a change to that part of the xml source file:
| Error: 404 Not Found: {"messges":[{"type":"ERROR","text":"Cannot find entity with name=\"Terraform_Sample_Dashboard\""}]}
|
| with splunk_data_ui_views.my_dashboard,
| on main.tf line 2, in resource "splunk_data_ui_views" "my_dashboard":
| 2: resource "splunk_data_ui_views" "my_dashboard" {
But that doesn't make immediate sense, since:
terraform state list shows my splunk_data_ui_views.my_dashboard just fine
The dashboard we created originally from the original terraform apply is also in the UI, so the state file is tracking the real world resource in Splunk?
So, why can't I simply make an edit of my source xml file if the plan is happy, but I get a 404 upon terraform apply.
I've worked with other Terraform providers like Terraform AWS and Terraform New Relic, and a simple property update is pretty seamless.
I've also noticed that the id of the dashboard is taken from the name we create the resource "splunk_data_ui_views" with. Could in the future the id be turned into a unique integer? Seems there is some co-dependency between the id and the name, but could be mistaken. But we do notice, the id created, known only after we run terraform apply, literally becomes the same as the name).
All this could be me simply being unfamiliar with Splunk and the TF provider for it. Any suggestions are appreciated. Thanks!
PS: We noticed that it appears the name property of the dashboard only accepts -, _, and . for special characters. Is there a place I can make a PR to update the documentation page for the resource here to note that? The error that is thrown if we have special characters outside of those three could also be improved. Just makes it easier to have that handy in the doc. acl properties also might be nice to have.
The text was updated successfully, but these errors were encountered:
I had the same problem. Unlike the get dashboard or create dashboard request in the Splunk api the update dashboard request expects owner="nobody" in the request path (if the dashboard is not privat). This is not reflected in the current release of this provider. However, PR seems to be ready to solve this issue. For me the following workaround helped for now:
@dklbe i think your workaround only works if the terraform user is an admin, or else you'll get errors indicating that you do not have permission to change the owner of the dashboard.
Hello,
I am working with the
splunk_data_ui_views
and deployed a dashboard via terraform:https://registry.terraform.io/providers/splunk/splunk/latest/docs/resources/data_ui_views
Code in
main.tf
What Worked
We were able to create the dashboard after the first
terraform apply
, and that went to success and the dashboard shows up in Splunk.Error(
404
): What Isn't Working, Changing a Simple property in the source XMLI simply went to change a small part of the xml in a dropdown, changing:
to:
appending that
edit
part on just to tinker with the dashboard. Theterraform plan
was successful and just shows a change to that part of the xml source file:But upon
terraform apply
we get a 404 error:But that doesn't make immediate sense, since:
terraform state list
shows mysplunk_data_ui_views.my_dashboard
just fineterraform apply
is also in the UI, so the state file is tracking the real world resource in Splunk?So, why can't I simply make an edit of my source xml file if the plan is happy, but I get a 404 upon
terraform apply
.I've worked with other Terraform providers like Terraform AWS and Terraform New Relic, and a simple property update is pretty seamless.
I've also noticed that the
id
of the dashboard is taken from thename
we create theresource "splunk_data_ui_views"
with. Could in the future theid
be turned into a unique integer? Seems there is some co-dependency between theid
and thename
, but could be mistaken. But we do notice, theid
created, known only after we runterraform apply
, literally becomes the same as thename
).All this could be me simply being unfamiliar with Splunk and the TF provider for it. Any suggestions are appreciated. Thanks!
PS: We noticed that it appears the
name
property of the dashboard only accepts-
,_
, and.
for special characters. Is there a place I can make a PR to update the documentation page for the resource here to note that? The error that is thrown if we have special characters outside of those three could also be improved. Just makes it easier to have that handy in the doc.acl
properties also might be nice to have.The text was updated successfully, but these errors were encountered: