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

use hclmerge to merge a new tflint config file when there is override hcl config #25

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

lonegunmanb
Copy link
Member

In the past we'll use .tflint_alt.hcl instead of downloaded avm.tflint.hcl, so the repo's owner could customize their own tflint config. But once we've upgraded the avm.tflint.hcl in the center repo, we might need upgrade all .tflint_alt.hcl files to adapt the new config, and that could be very difficult.

In this pr I use hclmerge to ease the pain. It could merge two hcl files like Terraform override file, so when the repo owners want to customize a config, they don't need to maintain a complete .tflint_alt.hcl file anymore, instead, they could create a avm.tflint.override.hcl or avm.tflint_example.override.hcl file, contains the parts they'd like to patch on the centralized version config file.

@lonegunmanb lonegunmanb merged commit 327bc56 into main Jan 24, 2024
2 checks passed
@lonegunmanb lonegunmanb deleted the override-tflint-hcl branch July 29, 2024 02:00
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