Skip to content

Instantly share code, notes, and snippets.

@dalen
Created September 29, 2014 21:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dalen/ec2fc2a9931eedb93193 to your computer and use it in GitHub Desktop.
Save dalen/ec2fc2a9931eedb93193 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