strong-vr-23014
10/10/2024, 1:53 PMpackage.json
in the @pulumi/aws
package:
Currently it references @pulumi/pulumi: 3.42.0
https://github.com/pulumi/pulumi-aws/blob/master/sdk/nodejs/package.json#L16
However it contains calling code to a function (invokeOutput
) only introduced in v3.133.0
https://github.com/pulumi/pulumi/releases/tag/v3.133.0 / https://github.com/pulumi/pulumi/pull/17237
Calling function ref: https://github.com/pulumi/pulumi-aws/blob/master/sdk/nodejs/route53/getZone.ts#L158 (there could be more, this is the one we found).
We have encountered (due to installing specific versions of @pulumi/pulumi
which are <3.133.0
but still satisfies ^3.42.0
) the following error:
error: Running program '/builds/...../index.ts' failed with an unhandled exception:
<ref *1> TypeError: pulumi.runtime.invokeOutput is not a function
at Object.getZoneOutput (/builds/.../node_modules/@pulumi/route53/getZone.ts:158:27)
at /builds/....../resource.ts:153:39
Is this considered an issue I should be raising a bug over on github for? Or is it more a "sort your own deps out" 😂future-hairdresser-70637
10/10/2024, 5:26 PMstrong-vr-23014
10/11/2024, 8:00 AMstrong-vr-23014
10/11/2024, 8:39 AMinvokeOutput
function itself though. I think this would not help as our error is: TypeError: pulumi.runtime.invokeOutput is not a function
I believe... it's all down to the aws-sdk not having a dependency on a version of the core that has this function in it. I agree updating is the preferred solution but updating the dependency in the aws-sdk for a version of pulumi which contains the code that wants to be called could protect others from this error.future-hairdresser-70637
10/11/2024, 12:57 PMfuture-hairdresser-70637
10/16/2024, 12:31 PM