{"id":19308692,"url":"https://github.com/mtulio/aws-resources","last_synced_at":"2025-07-28T09:09:18.151Z","repository":{"id":89055187,"uuid":"147878742","full_name":"mtulio/aws-resources","owner":"mtulio","description":"Tool to find AWS resources on an centralized place. Usefull for whom wants to manage multiple accounts and does not use AWS Organizations.","archived":false,"fork":false,"pushed_at":"2018-10-17T04:44:33.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-24T03:17:43.071Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mtulio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-07T21:59:38.000Z","updated_at":"2018-10-17T04:44:32.000Z","dependencies_parsed_at":"2023-06-13T17:54:14.367Z","dependency_job_id":null,"html_url":"https://github.com/mtulio/aws-resources","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mtulio/aws-resources","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtulio%2Faws-resources","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtulio%2Faws-resources/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtulio%2Faws-resources/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtulio%2Faws-resources/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mtulio","download_url":"https://codeload.github.com/mtulio/aws-resources/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtulio%2Faws-resources/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267490419,"owners_count":24095962,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T00:16:07.742Z","updated_at":"2025-07-28T09:09:18.058Z","avatar_url":"https://github.com/mtulio.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aws-resources\n\n`aws-resources` is an tool to find AWS resources on distributed accounts using\nassume roles (without exporting vars for each account).\n\nUseful for whom wants to manage multiple accounts and does not use AWS Organizations.\n\n## Setup\n\nCreate JSON with AWS accounts config:\n\n```json\n{\n  \"AWS_ORGANIZATIONS\": {\n    \"name\": \"My Org\",\n    \"AWS_ACCOUNTS\": [\n      {\n        \"id\": \"123456789012\",\n        \"alias\": \"root\",\n        \"assume_role_name\": \"script-iam-role-access\"\n      },\n      {\n        \"id\": \"123456789013\",\n        \"alias\": \"prod\",\n        \"assume_role_name\": \"script-iam-role-access\"\n      }\n    ]\n  }\n}\n```\n\n\n## AWS IAM Lookup\n\nLookup IAM Access ID in different AWS Accounts.\n\n* Lookup one access key ID:\n\n`time python3 cli_iam.py find-access-key --config ${PWD}/config.json --access-key AKIAXXXXXXXXXXXXX |jq .`\n\n* Lookup one or more access keys ID:\n\n`time python3 cli_iam.py find-access-keys --config ${PWD}/config.json --access-keys AKIAXXXXXXXXXXXXX,AKIAYYYYYYYYY |jq .`\n\n## AWS EC2\n\n### Instances\n\n* Dump instances to CSV format with main attributes:\n\n```bash\n$ python cli_ec2.py describe-instances\ninstance_id;name;state;ip_private;ip_public\nt2.nano;i-c4b9328afa0b78697;monkey;running;10.10.0.1;11.22.33.44\n\n```\n\n\n## SETUP\n\n* install boto3\n\n`pip install boto3`\n\n\n## HELP\n\n* [AWS Assume Role in Python](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_switch-role-api.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtulio%2Faws-resources","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmtulio%2Faws-resources","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtulio%2Faws-resources/lists"}