Skip to content

Commit

Permalink
Merge pull request #10 from dfds/feature/cloudplatform/issues/2575-part3
Browse files Browse the repository at this point in the history
Add support for outputting dashboard uid, url, version and title
  • Loading branch information
avnes authored Feb 8, 2024
2 parents 3b2f0b4 + af5e6fb commit e84ce4b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions grafana_dashboard/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
output "uid" {
value = [for d in grafana_dashboard.this : d.uid]
output "meta" {
value = [for d in grafana_dashboard.this : {
title = jsondecode(d.config_json).title
url = d.url
uid = d.uid
version = d.version
}]
}

0 comments on commit e84ce4b

Please sign in to comment.