Skip to content

Instantly share code, notes, and snippets.

@vjanelle
Forked from dalen/gist:ec2fc2a9931eedb93193
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vjanelle/18fb94ab2fb6f0e22cf7 to your computer and use it in GitHub Desktop.
Save vjanelle/18fb94ab2fb6f0e22cf7 to your computer and use it in GitHub Desktop.
# 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