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}"

View File

@ -46,7 +46,7 @@ module "datadog-monitors-${module_dash}" {
source = "git::ssh://git@bitbucket.org/morea/terraform.feature.datadog.git//${module_slash}?ref={revision}"
environment = "\${var.environment}"
message = "\${module.datadog-message-alerting.alerting-message}"
message = "\${module.datadog-message-alerting.alerting-message}"
}
\`\`\`