https://pulumi.com logo
#python
Title
# python
s

swift-lunch-74411

07/07/2020, 3:00 PM
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

gentle-diamond-70147

07/07/2020, 4:43 PM
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

swift-lunch-74411

07/08/2020, 8:56 AM
Yes the policy-pack and we are using the version 2.3
g

gentle-diamond-70147

07/08/2020, 4:12 PM
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

swift-lunch-74411

07/09/2020, 8:58 AM
I will