I have been trying to import a dashboard into Terraform using the Logic Monitor Terraform Provider.
I have exported the json template for the dashboard from the LogicMonitor Console and want to include that using the "template" argument.Which I guess is what we are supposed to do.
The Documentation for the LogicMonitor Terraform Provider is not very helpful.
Please can you tell me the correct Syntax to use to include the template?
to point at a file in the templates folder, and the output that I am receiving is: -
╷
│ Error: Incorrect attribute value type
│
│ on dashboard-aws-custom-billing-dashboards.tf line 30, in resource "logicmonitor_dashboard" "aws-billing-with-tag-values-dashboard":
│ 30: template = file("${path.module}/templates/AWS_Custom_Billing_Dashboard_Using_Tag_Values.json")
│ ├────────────────
│ │ path.module is "."
│
│ Inappropriate value for attribute "template": map of string required.
╵
I have been trying to import a dashboard into Terraform using the Logic Monitor Terraform Provider.
I have exported the json template for the dashboard from the LogicMonitor Console and want to include that using the "template" argument.Which I guess is what we are supposed to do.
The Documentation for the LogicMonitor Terraform Provider is not very helpful.
Please can you tell me the correct Syntax to use to include the template?
Currently I am using:
template = file("${path.module}/templates/AWS_Custom_Billing_Dashboard_Using_Tag_Values.json")
to point at a file in the templates folder, and the output that I am receiving is: -
Thanks for any assistance.
Kate
https://registry.terraform.io/providers/logicmonitor/logicmonitor/latest/docs/resources/dashboard_html