important-leather-28796
04/04/2019, 8:17 PMplugin 'kubernetes' found in the workspace or on your $PATH
colossal-beach-47527
04/04/2019, 8:20 PMnpm
?important-leather-28796
04/04/2019, 8:21 PMyarn list @pulumi/gcp @pulumi/pulumi
to ensure they were installed with a pulumi plugin ls
- pulumi/preview:
stack: alienfast/production
working_directory: ~/project/cloud/app
pulumi/login
colossal-beach-47527
04/04/2019, 8:22 PMyarn install
to get all of the prerequisites?important-leather-28796
04/04/2019, 8:23 PMcolossal-beach-47527
04/04/2019, 8:24 PMpulumi/preview
orb just shells out to pulumi preview ...
So it is probably something with how/where the plugins are being loaded/located.important-leather-28796
04/04/2019, 8:25 PMworking_directory: ~/project/cloud/app
working_directory: cloud/app
colossal-beach-47527
04/04/2019, 8:32 PMpulumi plugin ls
it should appear in the output.important-leather-28796
04/04/2019, 8:39 PM#!/bin/bash -eo pipefail
yarn list --pattern @pulumi && pulumi plugin ls
yarn list v1.12.3
warning Resolution field "react-apollo@2.5.2" is incompatible with requested version "react-apollo@^2.5.3"
warning Resolution field "react-apollo@2.5.2" is incompatible with requested version "react-apollo@^2.5.3"
├─ @pulumi/gcp@0.18.2
├─ @pulumi/kubernetes@0.22.0
├─ @pulumi/pulumi@0.17.4
└─ @pulumi/random@0.5.1
Done in 1.14s.
NAME KIND VERSION SIZE INSTALLED LAST USED
TOTAL plugin cache size: 0 B
prepare
jobpersist_to_workspace
and attach_workspace
persist_to_workspace
, I just need to know which path.colossal-beach-47527
04/04/2019, 8:44 PMbitter-oil-46081
04/04/2019, 8:44 PM~/.pulumi/plugins
There is a sub-folder for each plugin.important-leather-28796
04/04/2019, 8:47 PM* In step 8 (persist_to_workspace): Path ~/.pulumi/plugins is not relative to the workspace root (.)
PULUMI_HOME
or something like that pre-yarn?#!/bin/bash -eo pipefail
ls -la /home/circleci/.pulumi/plugins || true
ls: cannot access '/home/circleci/.pulumi/plugins': No such file or directory
#!/bin/bash -eo pipefail
ls -la /home/circleci/.pulumi || true
total 20
drwxr-xr-x 3 circleci circleci 4096 Apr 4 21:17 .
drwxr-xr-x 11 circleci circleci 4096 Apr 4 21:17 ..
-rw------- 1 circleci circleci 59 Apr 4 21:17 .cachedVersionInfo
drwx------ 2 circleci circleci 4096 Apr 4 21:17 bin
-rw------- 1 circleci circleci 149 Apr 4 21:17 credentials.json
#!/bin/bash -eo pipefail
echo $HOME
/home/circleci
pulumi login
Logging in using access token from PULUMI_ACCESS_TOKEN
Logged into <http://pulumi.com|pulumi.com> as rosskevin (<https://app.pulumi.com/rosskevin>)
circleci@122be95f3249:~/project$ ls -la ~/.pulumi/
total 20
drwxr-xr-x 3 circleci circleci 4096 Apr 4 22:00 .
drwxr-xr-x 11 circleci circleci 4096 Apr 4 21:55 ..
-rw------- 1 circleci circleci 59 Apr 4 22:00 .cachedVersionInfo
drwx------ 2 circleci circleci 4096 Apr 4 21:55 bin
-rw------- 1 circleci circleci 149 Apr 4 22:00 credentials.json
circleci@122be95f3249:~/project$ yarn list --pattern @pulumi
yarn list v1.12.3
warning Resolution field "react-apollo@2.5.2" is incompatible with requested version "react-apollo@^2.5.3"
warning Resolution field "react-apollo@2.5.2" is incompatible with requested version "react-apollo@^2.5.3"
├─ @pulumi/gcp@0.18.2
├─ @pulumi/kubernetes@0.22.0
├─ @pulumi/pulumi@0.17.4
└─ @pulumi/random@0.5.1
Done in 1.11s.
node_modules
and yarned, still no pluginsbitter-oil-46081
04/04/2019, 10:03 PMare they installed on first use?Right now, no. They are installed via a npm post install script which calls
pulumi plugin install
Can you run pulumi plugin install resource gcp 0.18.2
and let me know happens?important-leather-28796
04/04/2019, 10:04 PMpulumi
is not available from the orb until pulumi/login
bitter-oil-46081
04/04/2019, 10:05 PMpulumi plugin install
from the root of your project and it will try to install all plugins you need.important-leather-28796
04/04/2019, 10:05 PMpulumi/login
before yarn
confirmed to have plugins nowcolossal-beach-47527
04/04/2019, 10:18 PMimportant-leather-28796
04/04/2019, 10:19 PMpulumi preview --stack alienfast/production --cwd ~/project/cloud/app
Previewing update (alienfast/production):
@ Previewing update...| /
@ Previewing update...| pulumi:pulumi:Stack advisorintake-app-production running
@ Previewing update...| / - \ pulumi:pulumi:Stack advisorintake-app-production error: Running program '/home/circleci/project/cloud/app' failed with an unhandled exception:
pulumi:pulumi:Stack advisorintake-app-production error: Error: Cannot find module '@alienfast/pulumi'
- pulumi/preview:
stack: alienfast/production
working_directory: ~/project/cloud/app
~/p/a/c/app ❯❯❯ pulumi preview --stack alienfast/production
Previewing update (alienfast/production):
Type Name Plan Info
pulumi:pulumi:Stack advisorintake-app-production 4 messages
> ├─ pulumi:pulumi:StackReference alienfast/advisorintake-infrastructure/production read
> └─ pulumi:pulumi:StackReference alienfast/advisorintake-identity/production read
curl -L <https://get.pulumi.com/> | bash -s
under the circleci user account yields
+ Extracting to /home/circleci/.pulumi/bin
mktemp: failed to create directory via template 'pulumi.XXXXXXXXXX': Permission denied
RUN curl -L <https://get.pulumi.com/> | bash -s