Last active
September 5, 2017 15:19
-
-
Save iamleet/46f3f7b56476410c2b8213b26751bbb6 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
## One liner to parse an arn from json on aws cli - yee | |
data=`aws elbv2 describe-target-groups --names kast-web-staging | grep "TargetGroupArn\": \"arn:"` | cleanMe=${data##*arn | arn=arn${cleanMe%%\",*} | |
echo $arn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment