{"id":17494192,"url":"https://github.com/theinvincibleknight/fetch_aws_inventory","last_synced_at":"2026-04-17T02:31:52.704Z","repository":{"id":258161940,"uuid":"873468098","full_name":"theinvincibleknight/fetch_aws_inventory","owner":"theinvincibleknight","description":"AWS does not provide a native feature to fetch all AWS resources and import them as an AWS Inventory. This PowerShell script helps in retrieving the resources and saving them in an Excel file, which can be used as an inventory.","archived":false,"fork":false,"pushed_at":"2025-03-05T09:26:54.000Z","size":57,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T17:48:18.839Z","etag":null,"topics":["automation","aws","inventory-management","powershell","powershell-script"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/theinvincibleknight.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-10-16T08:13:44.000Z","updated_at":"2025-03-05T09:26:58.000Z","dependencies_parsed_at":"2025-03-28T17:52:18.125Z","dependency_job_id":null,"html_url":"https://github.com/theinvincibleknight/fetch_aws_inventory","commit_stats":null,"previous_names":["theinvincibleknight/fetch_aws_inventory"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/theinvincibleknight/fetch_aws_inventory","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theinvincibleknight%2Ffetch_aws_inventory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theinvincibleknight%2Ffetch_aws_inventory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theinvincibleknight%2Ffetch_aws_inventory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theinvincibleknight%2Ffetch_aws_inventory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theinvincibleknight","download_url":"https://codeload.github.com/theinvincibleknight/fetch_aws_inventory/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theinvincibleknight%2Ffetch_aws_inventory/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270422191,"owners_count":24580819,"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-08-14T02:00:10.309Z","response_time":75,"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":["automation","aws","inventory-management","powershell","powershell-script"],"created_at":"2024-10-19T13:05:37.410Z","updated_at":"2026-04-17T02:31:47.267Z","avatar_url":"https://github.com/theinvincibleknight.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fetch AWS Inventory\n\n## Overview\n\nAWS does not provide a native feature to fetch all AWS resources and import them as an AWS Inventory. This PowerShell script helps in retrieving the resources and saving them in an Excel file, which can be used as an inventory.\n\n## Prerequisites\n\nBefore running the script, you need to fetch the list of configured AWS profiles. You can do this by executing the following command in PowerShell:\n\n```powershell\naws configure list-profiles\n```\n\nThis command will return a list of your configured profiles, for example:\n\n```\ninventory-uat\ninventory-dev\ninventory-network\ninventory-prod\ninventory-shared\ninventory-admin\nscript-admin\n```\n\n## Configuration\n\n1. **Update the Script**: Open the `run_script.ps1` file and update the `$profiles` array with the required profile names:\n\n    ```powershell\n    $profiles = @(\"inventory-uat\", \"inventory-dev\", \"inventory-network\", \"inventory-prod\", \"inventory-shared\", \"inventory-admin\")\n    ```\n\n2. **Set Output File Path**: Update the `$outputFile` path in the script to specify where you want to save the output.\n\n3. **Update Batch File Path**: Ensure that the path to the `runscript.bat` file is correctly set in the script.\n\n## Running the Script\n\nOnce you have configured the script, you can open PowerShell and run it using the following command:\n\n```powershell\n.\\run_script.ps1\n```\n\nThe script will invoke the `runscript.bat` file, which will execute all the PowerShell scripts stored in the `scripts` folder. The output will be saved to the specified output file path.\n\n### Example Output\n\nWhen you run the script, you should see output similar to the following:\n\n```\nAWS Profile = inventory-uat\nRunning amplify.ps1\nRunning apigw.ps1\nRunning certificate.ps1\n.\n.\n.\n.\nRunning waf.ps1\nAll scripts executed successfully.\nAWS Profile = inventory-dev\nRunning amplify.ps1\nRunning apigw.ps1\n.\n.\n.\n```\n\n## License\n\nThis project is licensed under the MIT License.\n\n## Acknowledgments\n\n- AWS for providing the cloud infrastructure.\n- The community for their contributions and support.\n\n```\nFeel free to modify any sections as needed to better fit your project!\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheinvincibleknight%2Ffetch_aws_inventory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheinvincibleknight%2Ffetch_aws_inventory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheinvincibleknight%2Ffetch_aws_inventory/lists"}