MON-259: README should have a valide tf fmt example

This commit is contained in:
Jérôme Respaut 2018-07-19 16:39:10 +02:00
parent a9bedaeedb
commit b4f7afa871
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ for path in $(find $TO_PARSE -path ./incubator -prune -o -name 'monitors-*.tf' -
> outputs.tf
for monitor in $(grep 'resource "datadog_monitor"' $(basename $path) | awk '{print $3}' | tr -d '"' ); do
echo $monitor
cat <<EOF >> outputs.tf
cat >> outputs.tf <<EOF
output "${monitor}_id" {
description = "id for monitor $monitor"
value = "\${datadog_monitor.${monitor}.id}"