Generated program that uses, say, pulumi.asset
module doesn't import the module in the program
#87
Labels
kind/bug
Some behavior is incorrect or out of spec
What happened?
I asked AI the following:
The program it generates includes
As you can see it uses
pulumi.asset.StringAsset
but the generated program does not include`import * as pulumi from "@pulumi/pulumi";
This is especially vexing when using Pulumi AI in new project wizard since the deployment naturally fails.
Example
See above.
Output of
pulumi about
N/A
Additional context
There is an additional problem in the above code in that it uses specifies node 12 for the lambda runtime but AWS no longer supports node 12 for lambda.
And FWIW, the following prompt generates usable code:
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: