Created
September 25, 2020 12:24
-
-
Save waltervargas/870964b9e1120f177342e06cb7afb20d to your computer and use it in GitHub Desktop.
AWS Account List from Organization to terraform list format
This file contains hidden or 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 organizations list-accounts | jq -r '.[] | .[] | [.Id, .Name] | @csv' | perl -pe 's|,|, //|' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Produces something like this: