Skip to content

Instantly share code, notes, and snippets.

@saidie
Created May 19, 2017 02:13
Show Gist options
  • Save saidie/c1dd70b637384cf1e83295e4fc66cda5 to your computer and use it in GitHub Desktop.
Save saidie/c1dd70b637384cf1e83295e4fc66cda5 to your computer and use it in GitHub Desktop.
#!/bin/sh
nextToken=
while [ "$nextToken" != "null" ]; do
if [ -z "$nextToken" ]; then
exArgs=
else
exArgs="--next-token $nextToken"
fi
res=`aws ssm describe-parameters --max-results 50 $exArgs`
echo "$res" | jq -r '.Parameters[].Name'
nextToken=`echo "$res" | jq -r '.NextToken'`
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment