Skip to content

Instantly share code, notes, and snippets.

View vjanelle's full-sized avatar
💭
Day drinking

Vincent Janelle vjanelle

💭
Day drinking
View GitHub Profile
# 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)"