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

Add method to fetch provider content #167

Closed
glenthomas opened this issue Jul 1, 2022 · 0 comments · Fixed by #172
Closed

Add method to fetch provider content #167

glenthomas opened this issue Jul 1, 2022 · 0 comments · Fixed by #172
Labels
enhancement New feature or request

Comments

@glenthomas
Copy link

glenthomas commented Jul 1, 2022

Introduction

I am writing a rule to check aws provider configuration. Specifically, I would like to assert that aws providers have certain default_tags values set.

The runner interface has a GetResourceContent to make it easier to get resources (without using GetModuleContent). I would appreciate a function that gets the providers within the module.

Proposal

type Runner interface {
    GetProviderContent(providerName string, schema *hclext.BodySchema, option *GetModuleContentOption) (*hclext.BodyContent, error)
...
}

References

@bendrucker bendrucker transferred this issue from terraform-linters/tflint Jul 1, 2022
@bendrucker bendrucker changed the title A new Runner.GetProviderContent function Add method to fetch provider content Jul 1, 2022
@wata727 wata727 added the enhancement New feature or request label Jul 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging a pull request may close this issue.

2 participants