{"id":24581343,"url":"https://github.com/tech-preta/aws_ec2_inventory","last_synced_at":"2025-03-17T16:19:11.451Z","repository":{"id":231343419,"uuid":"781173980","full_name":"Tech-Preta/aws_ec2_inventory","owner":"Tech-Preta","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-03T19:45:11.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-01-24T02:55:52.118Z","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/Tech-Preta.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}},"created_at":"2024-04-02T22:05:34.000Z","updated_at":"2024-04-03T19:39:13.000Z","dependencies_parsed_at":"2024-04-03T20:57:58.187Z","dependency_job_id":null,"html_url":"https://github.com/Tech-Preta/aws_ec2_inventory","commit_stats":null,"previous_names":["tech-preta/role-ec2-dynamic","tech-preta/aws_ec2_inventory"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tech-Preta%2Faws_ec2_inventory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tech-Preta%2Faws_ec2_inventory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tech-Preta%2Faws_ec2_inventory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tech-Preta%2Faws_ec2_inventory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tech-Preta","download_url":"https://codeload.github.com/Tech-Preta/aws_ec2_inventory/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244066189,"owners_count":20392407,"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","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":"2025-01-24T02:56:08.085Z","updated_at":"2025-03-17T16:19:11.433Z","avatar_url":"https://github.com/Tech-Preta.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Script de Geração de Inventário AWS EC2\n\nEste script em Python foi desenvolvido para automatizar a geração de um inventário YAML das instâncias EC2 em uma conta da AWS.\n\n## Pré-requisitos\n\n- Python 3.x instalado no ambiente.\n- Biblioteca boto3 para Python instalada (`pip install boto3`).\n- Acesso às instâncias EC2 na conta da AWS.\n- Permissões IAM adequadas para consultar instâncias EC2.\n\n## Funcionalidades\n\n- Consulta as instâncias EC2 em uma determinada região (us-east-1 por padrão).\n- Extrai informações relevantes das instâncias EC2, como IDs, nomes, endereços IP, etc.\n- Cria um inventário YAML com os detalhes das instâncias EC2.\n- Pode ser configurado para usar um usuário SSH específico e um tipo de conexão SSH desejado.\n\n## Uso\n\n1. Certifique-se de ter configurado corretamente suas credenciais AWS.\n2. Execute o script `generate_ec2_inventory.py`.\n3. Verifique o arquivo `aws_ec2.yml` gerado no diretório especificado.\n\n## Configuração\n\nAntes de executar o script, certifique-se de revisar e ajustar as seguintes configurações conforme necessário:\n\n- **Usuário SSH**: Substitua `'ec2-user'` pelo nome do usuário SSH desejado.\n- **Tipo de Conexão SSH**: Substitua `'ssh'` pelo tipo de conexão SSH desejado.\n- **Local de Salvamento do Inventário**: Ajuste o caminho do arquivo de inventário YAML conforme desejado.\n\n## Observações\n\n- Este script foi desenvolvido para uso em ambientes Linux/Unix.\n- Certifique-se de ter as permissões adequadas para executar o script e gravar o inventário no diretório especificado.\n\n## Autor\n\nEste script foi desenvolvido por Natalia Granato. Para feedback ou contribuições, entre em contato.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftech-preta%2Faws_ec2_inventory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftech-preta%2Faws_ec2_inventory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftech-preta%2Faws_ec2_inventory/lists"}