MON-259: README should have a valide tf fmt example
This commit is contained in:
parent
a9bedaeedb
commit
b4f7afa871
@ -14,7 +14,7 @@ for path in $(find $TO_PARSE -path ./incubator -prune -o -name 'monitors-*.tf' -
|
|||||||
> outputs.tf
|
> outputs.tf
|
||||||
for monitor in $(grep 'resource "datadog_monitor"' $(basename $path) | awk '{print $3}' | tr -d '"' ); do
|
for monitor in $(grep 'resource "datadog_monitor"' $(basename $path) | awk '{print $3}' | tr -d '"' ); do
|
||||||
echo $monitor
|
echo $monitor
|
||||||
cat <<EOF >> outputs.tf
|
cat >> outputs.tf <<EOF
|
||||||
output "${monitor}_id" {
|
output "${monitor}_id" {
|
||||||
description = "id for monitor $monitor"
|
description = "id for monitor $monitor"
|
||||||
value = "\${datadog_monitor.${monitor}.id}"
|
value = "\${datadog_monitor.${monitor}.id}"
|
||||||
|
|||||||
@ -46,7 +46,7 @@ module "datadog-monitors-${module_dash}" {
|
|||||||
source = "git::ssh://git@bitbucket.org/morea/terraform.feature.datadog.git//${module_slash}?ref={revision}"
|
source = "git::ssh://git@bitbucket.org/morea/terraform.feature.datadog.git//${module_slash}?ref={revision}"
|
||||||
|
|
||||||
environment = "\${var.environment}"
|
environment = "\${var.environment}"
|
||||||
message = "\${module.datadog-message-alerting.alerting-message}"
|
message = "\${module.datadog-message-alerting.alerting-message}"
|
||||||
}
|
}
|
||||||
|
|
||||||
\`\`\`
|
\`\`\`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user