Skip to content

Instantly share code, notes, and snippets.

@pcolazurdo
Created October 5, 2021 21:31
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 pcolazurdo/ddddcbb37f9f4516a5d6252709d363da to your computer and use it in GitHub Desktop.
Save pcolazurdo/ddddcbb37f9f4516a5d6252709d363da to your computer and use it in GitHub Desktop.
CloudControl for the win
# very basic but you can see the gist of it:
aws cloudformation list-types --type RESOURCE --visibility PUBLIC | \
jq '.TypeSummaries[].TypeName' | \
cut -d\" -f2 | \
while read a
do
aws cloudcontrol list-resources --type-name $a 2>/dev/null| \
jq '.ResourceDescriptions[].Identifier'
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment