This message was deleted.
# typescript
s
This message was deleted.
l
Looks like there's a case-sensitivity problem. The AWS plugin is called pulumi-resource-aws, not pulumi-resource-AWS. Maybe try changing the type to begin with "aws"?
g
Thanks, that's fixed that error. I get a different error, I think the
type
field might still be wrong. Does
"type": "aws::Lambda::Function"
look correct - is there documentation on what the type fields should be. Terraform gave me
_
instead of
::
and I deduced the type from the AWS console. The error I get is:
Copy code
error: Preview failed: unrecognized resource type (Read): aws:Lambda:Function
So the type field would still seem incorrect.
l
If it's a Pulumi type, then yes, it's wrong. Maybe those are Terraform types? To find a Pulumi type, you can look in the approppriate module: they're always at the bottom of the .js file, called
<module>.__pulumiType
. For example, aws/lambda/function.js says that the type is
aws:lambda/function:Function
.
g
I've found that now inside the node modules. And that has imported successfully. 🎉 I can go and work out the other 20 resources now and import them now. Thanks so much for your help, I never found anything close to what the issue was.
👍 1
103 Views