This message was deleted.
# atlantis-community
s
This message was deleted.
m
Any errors related to custom check policy run in atlantis logs?
b
What are you running in the policy check step?
a
So running conftest since the main policy_sets are a bit too blocking - sometihng like this :
Copy code
echo "Required tags test output below:" && conftest test -o table --policy library/general/requiredtags/tags.rego  --namespace terraform.tags $PLANFILE.json
Ill check the logs for errors as well
b
@Andrzej Piorkowski Was this resolved?
a
Partially yes - error was pebkac due to how we’ve setup our policy checks previously… We would download the policy checks on every run and store in local dir in case if e.g. the policies got updated in the meantime. But since new policy block only allows full directory location to be specified and doesn’t seem to have access to the env vars from atlantis like $DIR I had to reinvent the wheel and redo all of our configs 🙂 Since then it started failing with another issue but that seems to be related to regula and how the checks are specified there - seeing the project didnt have any commits in over a year am leaning towards reaping it out of our enviro completely…
b
Wow that's unfortunate, and odd it cannot access the env vars there