logicmonitor / terraform-provider-logicmonitor

Terraform LogicMonitor provider.
https://registry.terraform.io
Mozilla Public License 2.0
24 stars 16 forks source link

logicmonitor_dashboard_group using widget_tokens #74

Closed wellingk closed 6 months ago

wellingk commented 11 months ago

Issue

i've imported a dashboard group and I am struggling with widget_tokens.

inherit_list = [] appears to be required as an element of widget_tokens and yet when i try to include it I receive the error.

Error: Computed attributes cannot be set
│ 
│   with logicmonitor_dashboard_group.aws-custom-billing-dashboard_group,
│   on dashboard-aws-custom-dashboard.tf line 1, in resource "logicmonitor_dashboard_group" "custom-dashboard-group":
│    1: resource "logicmonitor_dashboard_group" "aws-custom-billing-dashboard_group" {
│ 
│ Computed attributes cannot be set, but a value was set for "widget_tokens.1.type".

The documentation is not really very helpful in that it only states

inherit_list (required) - Need to pass 'null' value

I've tried every which way to pass a null value to this as suggested and am getting nowhere.

Expected Resolution

Thanks

lm-madhvi commented 7 months ago

As inherit_list and type are computed attribute (i.e. readonly), it cannot be configured, so we need to pass null value in it . widget_tokens =[ { name = "string" type = null inherit_list = null value = "string" }]