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

Update rules to check for empty block #318

Open
vatsalgit5118 opened this issue Oct 29, 2021 · 3 comments
Open

Update rules to check for empty block #318

vatsalgit5118 opened this issue Oct 29, 2021 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@vatsalgit5118
Copy link
Contributor

For the terraform template, if the user defines the empty block then the rule isn't able to validate it and compliance gets passed.
check_for_empty_block

@vatsalgit5118 vatsalgit5118 added the bug Something isn't working label Oct 29, 2021
@rezoan
Copy link
Contributor

rezoan commented Nov 5, 2021

@vatsalgit5118 if you declare an empty auth_settings in tf file. can you please confirm in the resource snapshot json, does it create

"auth_settings" : [
    { }
  ]

or

"auth_settings": [
 ]

@rezoan
Copy link
Contributor

rezoan commented Dec 26, 2021

expected json output snapshot should be for empty block:

"auth_settings" : [
    { }
  ]

@jaiminswan
Copy link
Contributor

Need to review again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants