We are trying to develop policies and test them lo...
# python
s
We are trying to develop policies and test them locally before pushing them to the Pulumi backend. We have followed the documentation and the samples from Pulumi but when we run the Pulumi preview or up with --pulumi-policies <folder-path> it does nothing. Using the wrong path cause an exception that shows it is considering the folder as policy. Also the log (-v) doesn't show anything related to this
g
Hi Mo, what versions are you using?
And just to clarify, do you mean the
--policy-pack
flag?
--pulumi-policies
is not a valid flag I believe.
s
Yes the policy-pack and we are using the version 2.3
g
Can you run the following commands in your policy pack folder and then try again?
Copy code
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
s
I will