Amazon Web Services - Useful CLI commands¶ Cloudfront¶ Find a distribution for an alias¶ $ aws cloudfront list-distributions \ --query "DistributionList.Items[*].{id:Id,alias:Aliases.Items[*]}[?contains(alias,'www.massyn.net')].id" \ --output text