Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simonw/iam-to-sqlite
Load Amazon IAM data into a SQLite database
https://github.com/simonw/iam-to-sqlite
Last synced: 27 days ago
JSON representation
Load Amazon IAM data into a SQLite database
- Host: GitHub
- URL: https://github.com/simonw/iam-to-sqlite
- Owner: simonw
- License: apache-2.0
- Created: 2021-03-24T00:16:15.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-03-24T00:20:26.000Z (over 3 years ago)
- Last Synced: 2024-10-11T09:26:21.005Z (about 1 month ago)
- Language: Python
- Size: 6.84 KB
- Stars: 8
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# iam-to-sqlite
[![PyPI](https://img.shields.io/pypi/v/iam-to-sqlite.svg)](https://pypi.org/project/iam-to-sqlite/)
[![Changelog](https://img.shields.io/github/v/release/simonw/iam-to-sqlite?include_prereleases&label=changelog)](https://github.com/simonw/iam-to-sqlite/releases)
[![Tests](https://github.com/simonw/iam-to-sqlite/workflows/Test/badge.svg)](https://github.com/simonw/iam-to-sqlite/actions?query=workflow%3ATest)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/simonw/iam-to-sqlite/blob/master/LICENSE)Load Amazon IAM data into a SQLite database
## Installation
Install this tool using `pip`:
$ pip install iam-to-sqlite
You will also need the `aws` command-line tool. Here are [the installation instructions](https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html) for that.
## Usage
Run this tool like so:
iam-to-sqlite iam.db
This will create a SQLite database called `iam.db` containing the following tables:
- `Groups`
- `Policies`
- `Users`
- `Roles`## Development
To contribute to this tool, first checkout the code. Then create a new virtual environment:
cd iam-to-sqlite
python -mvenv venv
source venv/bin/activateOr if you are using `pipenv`:
pipenv shell
Now install the dependencies and tests:
pip install -e '.[test]'
To run the tests:
pytest