Skip to content

Instantly share code, notes, and snippets.

@michiel
Created April 8, 2020 03:27
Show Gist options
  • Save michiel/a30f991fe70ff4689d91c0fb65ee7241 to your computer and use it in GitHub Desktop.
Save michiel/a30f991fe70ff4689d91c0fb65ee7241 to your computer and use it in GitHub Desktop.

Revisions

  1. michiel created this gist Apr 8, 2020.
    9 changes: 9 additions & 0 deletions list-active-cloudfront-deployments.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    #!/bin/sh

    AWS_PROFILE=my-profile
    AWS_REGION=ap-southeast-2

    aws --profile=$AWS_PROFILE \
    --region=$AWS_REGION \
    cloudfront list-distributions \
    | jq '.DistributionList.Items[].Origins.Items[] | {Id: .Id, OriginPath: .OriginPath}'