Skip to content

Commit

Permalink
updated templates to add dd_ to the id
Browse files Browse the repository at this point in the history
terraform v12 does not support naming to start with a digit
  • Loading branch information
Jelle Leempoels authored and Jelle Leempoels committed Nov 12, 2019
1 parent 5f2789c commit 293c488
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tmpl/monitor.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resource "datadog_monitor" "{{ .Id }}" {
resource "datadog_monitor" "dd_{{ .Id }}" {
name = "{{ .Name }}"
type = "{{ .Type }}"
{{- if .Tags }}
Expand Down
2 changes: 1 addition & 1 deletion tmpl/screenboard.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resource "datadog_screenboard" "{{ .Id }}" {
resource "datadog_screenboard" "dd_{{ .Id }}" {
title = "{{ .Title }}"
{{- if .ReadOnly }}
read_only = {{ .ReadOnly }}
Expand Down
2 changes: 1 addition & 1 deletion tmpl/timeboard.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resource "datadog_timeboard" "{{ .Id }}" {
resource "datadog_timeboard" "dd_{{ .Id }}" {
title = "{{ .Title }}"
description = "{{ .Description }}"
read_only = {{ .ReadOnly -}}
Expand Down

0 comments on commit 293c488

Please sign in to comment.