Skip to content

Commit bc8c3ca

Browse files
rajbosCopilot
andcommitted
fix: use \ (no braces) in heredoc to avoid Terraform interpolation
Terraform parses \ inside heredoc strings as TF expressions. Using \ without braces is valid bash and avoids the conflict. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent e72c2e0 commit bc8c3ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sharing-server/infra/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ resource "null_resource" "cert_binding" {
247247
PATCH=$(jq -n --argjson ing "$INGRESS" --arg h "$HOSTNAME" --arg c "$CERT_ID" \
248248
'$ing | .customDomains = [{"name": $h, "bindingType": "SniEnabled", "certificateId": $c}] | {properties: {configuration: {ingress: .}}}')
249249
az rest --method PATCH \
250-
--url "https://management.azure.com${APP_ID}?api-version=2024-03-01" \
250+
--url "https://management.azure.com$APP_ID?api-version=2024-03-01" \
251251
--body "$PATCH" \
252252
--output none
253253
echo "Cert $CERT_ID bound to $HOSTNAME (SniEnabled)."

0 commit comments

Comments
 (0)