thankful-controller-17230
07/28/2022, 10:15 PMpulumi policy
is going to be supported for local execution?
error: File state backend does not support resource policy
Previewing update (camus-infra):
panic: fatal: An assertion has failed: failed to convert err no analyzer plugin 'pulumi-analyzer-policy-python' found in the workspace or on your $PATH, install the plugin using `pulumi plugin install analyzer policy-python` to Error, did this come from an RPC endpoint?
$ pulumi plugin install analyzer policy-python
<https://pulumi.com/docs/reference/install/> for manual instructions and release notes.
error: 404 HTTP error fetching plugin from <https://api.github.com/repos/pulumi/pulumi-policy-python/releases/latest>. If this is a private GitHub repository, try providing a token via the GITHUB_TOKEN environment variable. See: <https://github.com/settings/tokens>
billowy-army-68599
07/28/2022, 10:27 PMpulumi up --policy-pack
pulumi policy
is the mechanism to public server side policies to the pulumi servicethankful-controller-17230
07/28/2022, 10:28 PMmkdir policy
pulumi policy new --dir policy gcp-python
pulumi preview -s camus-infra --policy-pack policy
panic: fatal: An assertion has failed: failed to convert err no analyzer plugin 'pulumi-analyzer-policy-python' found in the workspace or on your $PATH, install the plugin using `pulumi plugin install analyzer policy-python` to Error, did this come from an RPC endpoint?
bazel
wrapped build targets and “pyenv” style python environment), which might be part of the problem. I’ll try to repro with a more minimal config3.37.0
but the release notes for 3.37.1
don’t seem relevantbillowy-army-68599
07/28/2022, 10:32 PMpulumi-analyzer-policy-python
should be in the same path as the binarythankful-controller-17230
07/28/2022, 10:34 PMbazel
wrapperbazel
grab the release binary for the platform and bundle it with all the python libs, then have a wrapper script that finds the binary and executes it in the python environment.
This gets everyone running exactly the same pulumi
environment with no local python lib wrangling or headaches$PATH
in my wrapper and it works! thanks @billowy-army-68599