Seeing this issue when running `pulumi up`: ``` ...
# multi-language-hackathon
Seeing this issue when running `pulumi up`:
Copy code
Type                              Name                   Plan       Info
 +   pulumi:pulumi:Stack               simple-test-apilambda  create     
     └─ pulumi:providers:awslambdaapi  default_0_0_1                     1 error
  pulumi:providers:awslambdaapi (default_0_0_1):
    error: no resource plugin 'awslambdaapi-v0.0.1' found in the workspace or on your $PATH, install the plugin using `pulumi plugin install resource awslambdaapi v0.0.1`
Package written in typescript, built on Ubuntu. I have run these commands carefully:
Copy code
# Build and install the provider
make install_provider

# Regenerate SDKs
make generate

# Ensure the pulumi-provider-xyz script is on PATH
$ export PATH=$PATH:$PWD/bin

# Test Node.js SDK
$ make install_nodejs_sdk
$ cd examples/simple
$ yarn install
$ yarn link @pulumi/xyz
$ pulumi stack init test
$ pulumi config set aws:region us-east-1
$ pulumi up
Any ideas?
Is this your plugin that you wrote?
Well, it's the multi-lang component that I wrote
Aha. It’d be looking for an executable in $PATH
For example
Copy code
which pulumi-resource-aws
So I’m guessing
which pulumi-resource-awslambdaapi
These lines were supposed to take care of it:
Copy code
# Ensure the pulumi-provider-xyz script is on PATH
$ export PATH=$PATH:$PWD/bin
But it looks like they’re not working.
There's what I'm working with. I did run that command -- I'll take a look at the path and see if anything looks odd
In bin I have `pulumi-resource-aws-lambda-api
So, that name might not line up with what my package name should be, when I was setting some of those names I was uncertain
With dashes..
Right that sounds like it can be a problem.
I’ve checked out you code, trying it out
🙌 1
Name propagation is a menace
Where's the source of truth for the package name?
That’s the problem, it’s denormalized
Still working with your code, give me a sec. Trying to get the names consistent, if it works I’ll send a PR
👍 1
Alright, I'm going through and removing aws-lambda-api and replacing it with "lambdaapi", which is the package name in typescript
I unfortunately went the other way (-> “awslambdaapi”) but it gives you an idea of all the locations the name figures.
Thank you! I'll pull this down
Files under sdk/ are auto-edited by Make but the rest are hand-edited
Looks like it's working, TYVM!
❤️ 1