adorable-summer-21974
08/01/2023, 2:22 PMredis://${redisCluster.cacheNodes.apply(nodes => nodes[0].address )}:6379
Results in:
Calling [toString] on an [Output<T>] is not supported.\n\nTo get the value of an Output<T> as an Output<string> consider either\n1 o.apply(v =>Can't work out how to unbundle this one. Thanks for any help!)\n2: pulumi.interpolate `prefix${v}suffix`\n\nSee https://www.pulumi.com/docs/concepts/inputs-outputs for more details.\nThis function may throw in a future version of @pulumi/pulumi."prefix${v}suffix
polite-napkin-90098
08/01/2023, 2:58 PMpulumi.interpolate `redis://${redisCluster.cacheNodes.nodes[0].address}:6379`
I thinkadorable-summer-21974
08/01/2023, 4:08 PMTSError: ⨯ Unable to compile TypeScript:
index.ts(217,56): error TS2345: Argument of type 'string' is not assignable to parameter of type 'TemplateStringsArray'.
index.ts(217,91): error TS2339: Property 'nodes' does not exist on type 'Output<ClusterCacheNode[]>'.
cacheNodes
, then I get :
TSError: ⨯ Unable to compile TypeScript:index.ts(217,56): error TS2345: Argument of type 'string' is not assignable to parameter of type 'TemplateStringsArray'.