Skip to content

Instantly share code, notes, and snippets.

@packetchef
Created December 10, 2019 00:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save packetchef/8f75ca1dcc208795d207a665cb41ef94 to your computer and use it in GitHub Desktop.
Save packetchef/8f75ca1dcc208795d207a665cb41ef94 to your computer and use it in GitHub Desktop.
# Given this command:
$ aws cloudfront list-distributions --query DistributionList.Items[].[Id,DomainName,Status] --output text
# We can also use jq:
$ aws cloudfront list-distributions | jq -r '.DistributionList.Items[] | [.Id, .DomainName, .Status] | @tsv'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment