Skip to content

Commit

Permalink
update expression to get rid of heredoc with json body
Browse files Browse the repository at this point in the history
  • Loading branch information
lonegunmanb committed Jul 4, 2024
1 parent 8182fea commit 988b239
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions locals.telemetry.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,21 @@ locals {
64
)
# This is an empty ARM deployment template.
# tflint-ignore: terraform_heredoc_usage
telem_arm_template_content = <<TEMPLATE
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {},
"variables": {},
"resources": [],
"outputs": {
"telemetry": {
"type": "String",
"value": "For more information, see https://aka.ms/avm/telemetry"
telem_arm_template_content = jsonencode(
{
"$schema" = "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion" = "1.0.0.0",
"parameters" = {},
"variables" = {},
"resources" = [],
"outputs" = {
"telemetry" = {
"type" = "String",
"value" = "For more information, see https://aka.ms/avm/telemetry"
}
}
}
}
}
TEMPLATE
)
# This is the unique id AVM Terraform modules that is supplied by the AVM team.
# See https://azure.github.io/Azure-Verified-Modules/specs/shared/#id-sfr3---category-telemetry---deploymentusage-telemetry
telem_puid = "46d3xgtf"
Expand Down

0 comments on commit 988b239

Please sign in to comment.