{"id":18130244,"url":"https://github.com/resola-ai/rust-aws-tui","last_synced_at":"2025-03-30T15:32:00.987Z","repository":{"id":259567632,"uuid":"878197615","full_name":"resola-ai/rust-aws-tui","owner":"resola-ai","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-26T15:32:55.000Z","size":253,"stargazers_count":86,"open_issues_count":0,"forks_count":2,"subscribers_count":9,"default_branch":"main","last_synced_at":"2024-10-27T16:19:02.339Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":false,"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/resola-ai.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":"2024-10-25T00:08:34.000Z","updated_at":"2024-10-27T13:20:27.000Z","dependencies_parsed_at":"2024-10-26T15:36:13.001Z","dependency_job_id":"56f32c8c-de52-4df8-b29f-29b7fe9483d9","html_url":"https://github.com/resola-ai/rust-aws-tui","commit_stats":null,"previous_names":["resola-ai/rust-aws-tui"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/resola-ai%2Frust-aws-tui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/resola-ai%2Frust-aws-tui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/resola-ai%2Frust-aws-tui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/resola-ai%2Frust-aws-tui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/resola-ai","download_url":"https://codeload.github.com/resola-ai/rust-aws-tui/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246339261,"owners_count":20761519,"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":"2024-11-01T11:01:43.028Z","updated_at":"2025-03-30T15:31:55.979Z","avatar_url":"https://github.com/resola-ai.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# AWS Lambda Logs Viewer\n\nA terminal-based user interface (TUI) application for viewing AWS Lambda function logs across multiple profiles and regions.\n\n## Features\n\n- 🔍 Browse and filter Lambda functions across AWS profiles\n- ⚡ Quick access to recent logs with predefined time ranges\n- 📅 Custom date range selection for detailed log analysis\n- 🔎 Real-time log filtering and search\n- 💨 Fast navigation with keyboard shortcuts\n- 📦 Function list caching for improved performance\n\n## Prerequisites\n\n- Rust (latest stable version)\n- AWS credentials configured in `~/.aws/credentials`\n- AWS config with profiles in `~/.aws/config`\n\n## Installation\n\n1. Clone the repository:\n\n```shell\ngit clone https://github.com/resola-ai/rust-aws-tui\ncd rust-aws-tui\n```\n\n2. Build and install:\n\n```\ncargo install --path .\n```\n\n## Usage\n\n- Update config.toml with your AWS profiles and regions.\n\n### Basic Navigation\n\n- Use `↑`/`↓` or `k`/`j` to navigate through lists\n- `Tab` to switch between panels\n- `Enter` to select/confirm\n- `Esc` to go back/cancel\n- `q` to quit the application\n\n### Step 1: Profile Selection\n\n1. Select an AWS profile from the list\n\n![AWS Profile Selection](./docs/assets/step1_select_profile.png)\n\n- Use `↑`/`↓` or `j`/`k` to navigate profiles\n- Press `Enter` to select\n- Press `q` to quit\n\n### Step 2: Function Selection\n\n1. Select an AWS profile from the list\n2. Choose a region\n3. Browse or search through the Lambda functions list\n4. Press `Enter` to view logs for the selected function\n\n![Function Selection](./docs/assets/step_2_select_function.png)\n\n### Time Range Selection\n\n- Choose from predefined ranges:\n  - Last 15 minutes\n  - Last hour\n  - Last 3 hours\n  - Last 24 hours\n- Or select \"Custom Range\" to specify exact dates and times\n\n![Time Range Selection](./docs/assets/step_3_select_date_range.png)\n\n### Log Viewing\n\n- Use `↑`/`↓` to scroll through logs\n- Type to search/filter logs in real-time\n- `Ctrl+C` to copy selected log entry\n- `f` to toggle full-screen mode\n\n![Log Viewer](./docs/assets/step_4_view_logs.png)\n\nToggle detail view with `Enter`\n\n![Log Detail View](./docs/assets/step_5_view_detail_logs.png)\n\n## Configuration\n\n### AWS Credentials\n\nEnsure your AWS credentials are properly configured:\n\n# ~/.aws/credentials\n[default]\naws_access_key_id = YOUR_ACCESS_KEY\naws_secret_access_key = YOUR_SECRET_KEY\n\n[other-profile]\naws_access_key_id = OTHER_ACCESS_KEY\naws_secret_access_key = OTHER_SECRET_KEY\n\n# ~/.aws/config\n[profile default]\nregion = us-west-2\n\n[profile other-profile]\nregion = eu-west-1\n\n### Cache Configuration\n\nThe application caches function lists to improve performance. Cache files are stored in:\n- Linux/macOS: `~/.cache/aws-lambda-logs-viewer/`\n- Windows: `%LOCALAPPDATA%\\aws-lambda-logs-viewer\\`\n\nTo clear the cache, delete the cache directory or use the `--clear-cache` flag when launching the application.\n\n## Troubleshooting\n\n### Common Issues\n\n1. **No AWS profiles found**\n   - Verify AWS credentials file exists\n   - Check file permissions\n   - Ensure proper file format\n\n2. **Cannot fetch Lambda functions**\n   - Verify AWS credentials are valid\n   - Check IAM permissions\n   - Ensure network connectivity\n\n3. **Slow function loading**\n   - Consider using the cache feature\n   - Check network latency\n   - Verify AWS API rate limits\n\n### Required IAM Permissions\n\nMinimum IAM policy required:\n\n{\n    \"Version\": \"2012-10-17\",\n    \"Statement\": [\n        {\n            \"Effect\": \"Allow\",\n            \"Action\": [\n                \"lambda:ListFunctions\",\n                \"logs:GetLogEvents\",\n                \"logs:FilterLogEvents\",\n                \"logs:DescribeLogStreams\",\n                \"logs:DescribeLogGroups\"\n            ],\n            \"Resource\": \"*\"\n        }\n    ]\n}\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch\n3. Commit your changes\n4. Push to the branch\n5. Create a Pull Request\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fresola-ai%2Frust-aws-tui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fresola-ai%2Frust-aws-tui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fresola-ai%2Frust-aws-tui/lists"}