Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the purpose of the module/data checking? #2

Open
domeales-paloit opened this issue Nov 22, 2022 · 2 comments
Open

What is the purpose of the module/data checking? #2

domeales-paloit opened this issue Nov 22, 2022 · 2 comments

Comments

@domeales-paloit
Copy link

Hi @mjlshen

Great job on these policies.

Just a question, I am wondering what is the purpose of the module/data deny check? I am not sure I understand the logic here.

Cheers

@mjlshen
Copy link
Owner

mjlshen commented Nov 23, 2022

No worries! If you are referring to this: https://github.com/mjlshen/terraform-aws-opa/blob/main/policy/aws_common.rego#L94

Sometimes organizations mandate that developers need to use internal Terraform modules (or data), but aren't allowed to use vanilla resources as a way to restrict what's allowed. This is just an example of how one might write that restriction into Rego 😅

@domeales-paloit
Copy link
Author

Ok that makes sense, I can see how that may be useful in certain scenarios.

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants