Created
April 20, 2017 01:30
-
-
Save jami-i/c700f69a27915f302537f4acc6699524 to your computer and use it in GitHub Desktop.
This file contains 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/bash | |
prefix=foovar | |
aws apigateway get-rest-apis | jq "(.items | map(select(.name | startswith(\"${prefix}-\"))))" | |
# extract ids only | |
aws apigateway get-rest-apis | jq "(.items | map(select(.name | startswith(\"${prefix}-\")))) | .[].id" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment