This message was deleted.
# atlantis-community
s
This message was deleted.
r
Use case: id like to add infosec as reviewers whenever an iam resource is added, subtracted, or modified
The implementation, i imagine • Install gh in container • Generate the plan json • Use conftest to check if there is an iam resource modified or created or destroyed • If so, use gh cli to add infosec as reviewers • If not, do nothing
a
isn't it easier to add them as approvers os the conftest policy? thats what we do
r
How does that work
a
you can define policy owners, whenever that policy fails the owner need to approve it via
atlantis approve_policies
(or something like that) comment
if a user who is not the owner tries to approve the policies the following error is returned
Copy code
policy set: conftest-policies user <redacted> is not a policy owner - please contact policy owners to approve failing policies
they don't actually get added as reviewers but works for us
r
oh wow I need to implement this. Thank you
👍 1
a
The owner can also be a group on GitHub
❤️ 1
And if the user pushes a new commit to the PR it will automatically revoke a previously approved command
v
@Andre Ziviani do you know if this approval process works with bitbucket cloud? I've been trying to implement something similar with no luck so far
a
this is an atlantis feature so I guess it should work, but I'm not sure
1
v
The user base it uses is from the VCS, right?
a
yes
1