This message was deleted.
# general
s
This message was deleted.
a
I tried to use that Apply...
Copy code
&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.
Copy code
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
Copy code
&cloudrun.ServiceTemplateSpecContainerEnvArgs{
	Name:  pulumi.String("REDIS_PORT"),
	Value: redisResource.Port.ApplyString(func(port int) string { return fmt.Sprintf("%d", port)}),},
Which worked!