Skip to content

hoominkani/aws-accounts-to-csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Accounts To CSV

This project consists of a Python script that uses Boto3 to interact with AWS Organizations. It fetches a list of all AWS accounts under the organization, including details such as account name, ID, organizational unit (OU) paths, email, status, and join method. The results are output to a CSV file.

スクリーンショット 2024-03-28 18 13 25

Getting Started

These instructions will guide you through setting up and running the project on your local machine using Docker and Docker Compose.

Prerequisites

  • Docker
  • Docker Compose

Configuring the Project

  1. Clone this repository to your local machine.
  2. Navigate to the project directory.
  3. Ensure your AWS credentials are correctly set like this:
export AWS_ACCESS_KEY_ID=$YOUR_AWS_ACCESS_KEY_ID
export AWS_SECRET_ACCESS_KEY=$YOUR_AWS_SECRET_ACCESS_KEY
export AWS_DEFAULT_REGION=$YOUR_AWS_DEFAULT_REGION

How to output csv

docker-compose up

Option

If you want to output ID store information (users, groups), permission sets, and assignment information as a Markdown file, run the following command.

docker compose run aws-org-script python summarize.py

About

Outputs a list of AWS account information and affiliated OUs under the organization as a CSV file.

Topics

Resources

License

Stars

Watchers

Forks