Skip to content

added prevent-non-root-providers.sentinel #162

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

Merged
merged 1 commit into from
Oct 22, 2019

Conversation

rberlind
Copy link
Contributor

I've added a new policy called prevent-non-root-providers.sentinel and associated test cases and mocks to prevent any providers from being declared in non-root modules. This is to allow customers to enforce our best practices in https://www.terraform.io/docs/configuration/modules.html#providers-within-modules

@rberlind rberlind requested a review from apolloclark October 22, 2019 16:48
Copy link
Contributor

@apolloclark apolloclark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simple and clean. Looks good :)

@rberlind rberlind merged commit 14f2438 into master Oct 22, 2019
@rberlind rberlind deleted the block-providers-in-modules branch October 22, 2019 20:03
@rberlind rberlind restored the block-providers-in-modules branch October 22, 2019 20:05
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

Successfully merging this pull request may close these issues.

2 participants