narrow-match-14013
02/14/2023, 6:25 PMpulumi.interpolate
pulumi throws an error:
error: Preview failed: objectEncoder failed on property "url": Expected a string, got: {&{{<http://vm-4liajfa3.staging.azure.tetrate.com/}}}>
If i wrap the whole thing in an apply it works though. For example:
pulumi.output(args.endpoint).apply(
(endpoint) =>
new checkmate.HttpHealth(
`${this.pulumiName}-check-endpoint`,
{
timeout: 1000 * 60 * 10, // 10 min, to allow for DNS to propagate (2 x TTL)
interval: 1000 * 2, // 2s
consecutiveSuccesses: 100,
url: endpoint,
},
{ dependsOn: this.resources },
).id,
)
Any ideas?<http://github.com/pulumi/pulumi-terraform-bridge/pkg/tfpfbridge|github.com/pulumi/pulumi-terraform-bridge/pkg/tfpfbridge> v0.0.0-20230120143314-6ffb2faf051e
enough-garden-22763
02/14/2023, 8:03 PMnarrow-match-14013
02/14/2023, 8:08 PMargs.endpoint
is a pulumi.Input<string>
but its constructed from an interpolate that takes >1 item:
endpoint: pulumi.interpolate`vm-${vmPrefix}.${standaloneCluster.dnsDomain}
pulumi.Output<string>
and pulumi.Input<string>
respectivelyenough-garden-22763
02/14/2023, 8:09 PMnarrow-match-14013
02/14/2023, 8:13 PMenough-garden-22763
02/14/2023, 8:13 PMnarrow-match-14013
02/14/2023, 8:13 PMenough-garden-22763
02/15/2023, 4:58 AM