sparse-intern-71089
01/11/2021, 11:42 AMancient-actor-17231
01/11/2021, 11:53 AM&cloudrun.ServiceTemplateSpecContainerEnvArgs{
Name: pulumi.String("REDIS_PORT"),
Value: redisResource.Port.ApplyString(func(port string) string { return port}),},
Which resulted in the following highly useful panic message.
Diagnostics:
pulumi:pulumi:Stack (********):
panic: applier must have 1 input parameter assignable from int
goroutine 1 [running]:
<http://github.com/pulumi/pulumi/sdk/v2/go/pulumi.makeContextful(0x29afde0|github.com/pulumi/pulumi/sdk/v2/go/pulumi.makeContextful(0x29afde0>, 0x2e5a5a0, 0x2f42660, 0x297f880, 0x20, 0x2a734c0)
Was able to then try
&cloudrun.ServiceTemplateSpecContainerEnvArgs{
Name: pulumi.String("REDIS_PORT"),
Value: redisResource.Port.ApplyString(func(port int) string { return fmt.Sprintf("%d", port)}),},
Which worked!