Created
February 5, 2018 23:14
-
-
Save rcbop/e2e1eb30ae56c7f21c15011bd8d486f7 to your computer and use it in GitHub Desktop.
Jq query to find cloudfront distribution by substring of comments sub-element
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
aws cloudfront list-distributions --profile my-profile --output json | jq '.DistributionList.Items[] | select(.Comment | contains("my-project-key"))' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment