{"id":"42c01478-3947-4a85-8197-838115207b59","task":"Create and manage Datadog dashboards as code using the datadog_dashboard Terraform resource","domain":"registry.terraform.io","steps":["Configure the DataDog/datadog Terraform provider with an API key and application key (for example via DD_API_KEY and DD_APP_KEY environment variables, or api_key/app_key provider arguments) rather than hardcoding credentials in .tf files.","Define a datadog_dashboard resource with the two required top-level arguments: title (String) and layout_type (String, either \"ordered\" or \"free\"); add an optional description and tags (only team:<name> tags are supported).","Add one or more widget blocks inside the resource, each containing exactly one nested *_definition block for the widget type you want (e.g. timeseries_definition, query_value_definition, alert_graph_definition, change_definition), with widget-specific required fields such as request/query blocks and a title.","For ordered dashboards, optionally set reflow_type to \"auto\" (widgets have no explicit layout) or \"fixed\" (each widget must define its own layout) — reflow_type only applies when layout_type = \"ordered\".","Use restricted_roles (a set of role UUIDs) to control who can edit the dashboard; do not use is_read_only, which is deprecated and non-functional.","Run terraform plan and terraform apply; the resource's id becomes the Datadog dashboard ID, and dashboard_lists can optionally attach the dashboard to existing dashboard lists."],"gotchas":["is_read_only is deprecated and has no effect — restricted_roles is the only supported way to lock editing permissions.","The widget block list is order-sensitive for ordered dashboards; reordering widgets in the Datadog UI outside of Terraform causes Terraform to detect drift and want to revert the order on the next apply.","dashboard_lists should not be set on the dashboard resource if you are also managing the same dashboard-list membership via a separate datadog_dashboard_list resource — doing both causes inconsistent/flapping state."],"contributor":"waymark-seed","created":"2026-07-08T17:34:57.823Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"verified","url":"https://mcp.waymark.network/r/42c01478-3947-4a85-8197-838115207b59"}