https://pulumi.com logo
#install
Title
# install
c

chilly-laptop-44574

04/03/2020, 12:03 AM
Hello Guys, do I have to run
pulumi plugin install resource gcp v2.12.0
for each resource we are using?
g

green-morning-1318

04/03/2020, 12:20 AM
For each provider, yes so like
gcp
or
aws
👍 1
not for resources you create like a K8s cluster on GCP or an S3 bucket on AWS
c

chilly-laptop-44574

04/03/2020, 12:22 AM
Ok Thanks, any idea how to sync versioning with package,json in case of Node?
g

green-morning-1318

04/03/2020, 12:29 AM
The
pulumi plugin install
is only needed when you want to manually install resource provider plugins. For most languages, including TypeScript/Node.js, Pulumi will take care of installing the resource provider
For example, in my case my package.json has
Copy code
"dependencies": {
        "@pulumi/pulumi": "^1.0.0",
        "@pulumi/kubernetes": "^1.0.0",
        "@pulumi/kubernetesx": "^0.1.1"
    }
And I let the Pulumi command figure out which resource provider and which version I need
g

gentle-diamond-70147

04/03/2020, 12:41 AM
Yea, manually running
pulumi plugin install ...
is generally not needed.
npm install
or
pip install ...
should handle this for you in most cases.
c

chilly-laptop-44574

04/03/2020, 12:43 AM
hmm but I do yarn install (using yarn workspace) which takes care for npms but when I run
pulumi stack select ...
i am getting info about missing plugin…