https://pulumi.com logo
Title
q

quaint-river-59320

10/11/2022, 2:53 PM
Good morning everyone. Having an issue with running a pulumi preview on ubuntu. It works locally on a mac, but trying to run it on a ubuntu box in aws, seeing the following
error: policy pack "pulumi-awsguard" failed to start: could not read plugin [/home/ubuntu/.pulumi/bin/pulumi-analyzer-policy] stdout: EOF
b

billowy-army-68599

10/11/2022, 2:59 PM
how did you install Pulumi?
q

quaint-river-59320

10/11/2022, 2:59 PM
curl -fsSL <https://get.pulumi.com> | sh
b

billowy-army-68599

10/11/2022, 3:12 PM
does that file exist?
q

quaint-river-59320

10/11/2022, 3:14 PM
ubuntu@ip-10-126-0-72:~/pulumi-test/pulumi-test$ ls -la /home/ubuntu/.pulumi/bin/
total 214496
drwxrwxr-x 2 ubuntu ubuntu     4096 Oct 11 12:18 .
drwxrwxr-x 5 ubuntu ubuntu     4096 Oct 11 12:28 ..
-rwxr-xr-x 1 ubuntu ubuntu 75941727 Oct 11 12:18 pulumi
-rwxr-xr-x 1 ubuntu ubuntu      245 Oct 11 12:18 pulumi-analyzer-policy
-rwxr-xr-x 1 ubuntu ubuntu     1853 Oct 11 12:18 pulumi-analyzer-policy-python
-rwxr-xr-x 1 ubuntu ubuntu 22605414 Oct 11 12:18 pulumi-language-dotnet
-rwxr-xr-x 1 ubuntu ubuntu 23877749 Oct 11 12:18 pulumi-language-go
-rwxr-xr-x 1 ubuntu ubuntu 22365308 Oct 11 12:18 pulumi-language-java
-rwxr-xr-x 1 ubuntu ubuntu 22726858 Oct 11 12:18 pulumi-language-nodejs
-rwxr-xr-x 1 ubuntu ubuntu 22675316 Oct 11 12:18 pulumi-language-python
-rwxr-xr-x 1 ubuntu ubuntu     9626 Oct 11 12:18 pulumi-language-python-exec
-rwxr-xr-x 1 ubuntu ubuntu 22585344 Oct 11 12:18 pulumi-language-yaml
-rwxr-xr-x 1 ubuntu ubuntu      238 Oct 11 12:18 pulumi-resource-pulumi-nodejs
-rwxr-xr-x 1 ubuntu ubuntu     1893 Oct 11 12:18 pulumi-resource-pulumi-python
-rwxr-xr-x 1 ubuntu ubuntu  6818384 Oct 11 12:18 pulumi-watch
Yes
b

billowy-army-68599

10/11/2022, 3:58 PM
if you execute it manually, what happens?
this is the content of the file, fwiw:
#!/bin/sh
PULUMI_RUN_SCRIPT_PATH=$(node -e "try { console.log(require.resolve('@pulumi/pulumi/cmd/run-policy-pack')) } catch (e) { console.error(e.message) }")
if [ ! -z "$PULUMI_RUN_SCRIPT_PATH" ]; then
    node "$PULUMI_RUN_SCRIPT_PATH" $@
fi
do you have node installed?
q

quaint-river-59320

10/11/2022, 4:14 PM
Node is not installed on the aws machine
b

billowy-army-68599

10/11/2022, 4:19 PM
it;ll need to be
q

quaint-river-59320

10/11/2022, 4:35 PM
What version of node?
e

echoing-dinner-19531

10/11/2022, 4:48 PM
We target 14 but I think any recent will probably work