Created
November 18, 2016 20:13
-
-
Save steve-jansen/20d15d2389fec77053d24c54642b545c to your computer and use it in GitHub Desktop.
Parse Terraform state file for AWS security group rules
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jq '.modules[].resources | to_entries[] | select(.value.type == "aws_security_group_rule" or .value.type == "aws_security_group")' test.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment