Created
September 29, 2014 21:56
-
-
Save dalen/ec2fc2a9931eedb93193 to your computer and use it in GitHub Desktop.
This file contains 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
# Remove parameters on resources that aren't exported or tagged public | |
ExtFilterDefine resources-remove-parameters-nonexported-nonpublic mode=output \ | |
intype=application/json outtype=application/json \ | |
cmd="/usr/bin/jq map(if\ .exported\ or\ (.tags\ |\ contains([\"public\"]))\ then\ .\ else\ .parameters={}\ end)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment