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

Terrascan print out rules in human friendly format? #168

Closed
munntjlx opened this issue Jul 1, 2019 · 2 comments · Fixed by #431
Closed

Terrascan print out rules in human friendly format? #168

munntjlx opened this issue Jul 1, 2019 · 2 comments · Fixed by #431

Comments

@munntjlx
Copy link

munntjlx commented Jul 1, 2019

Description

I would like to 'print out' the rules that things test for in a comprehensive format (csv, json, yaml) so I can put into CMDB and manage 'centrally' for my auditors etc. The function definitions in the test modules are somewhat hard to read. Some examples of desired types of output:

types of output

CSV:
aws_ami_copy, 'Assert resources are encrypted', 'Property: encrypted', 'expected: kms_key_id"

Markdown:

Rule Name Assert Resources are Encrypted

Test: Checks to see if aws_AMI_copy' property 'encrypted' equals "kms_key_id"

@cesar-rodriguez
Copy link
Contributor

Hi @munntjlx with v1.0.0 we're including a ".json" rules file with each rego policy here. I think a good enhancement would be to have a command, like you suggest, to export the rule information that's configured in your local environment regardless of what's included in the repository by default.

@cesar-rodriguez
Copy link
Contributor

This was resolved by #431

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

Successfully merging a pull request may close this issue.

2 participants