Created
May 19, 2017 02:13
-
-
Save saidie/c1dd70b637384cf1e83295e4fc66cda5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/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