{"id":45811352,"url":"https://github.com/johnlam90/aws-ssm","last_synced_at":"2026-05-31T07:03:37.187Z","repository":{"id":323074622,"uuid":"1091990852","full_name":"johnlam90/aws-ssm","owner":"johnlam90","description":null,"archived":false,"fork":false,"pushed_at":"2025-12-09T21:56:13.000Z","size":901,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-26T20:46:20.745Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/johnlam90.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-11-07T20:28:06.000Z","updated_at":"2025-11-20T04:55:22.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/johnlam90/aws-ssm","commit_stats":null,"previous_names":["johnlam90/aws-ssm"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/johnlam90/aws-ssm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnlam90%2Faws-ssm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnlam90%2Faws-ssm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnlam90%2Faws-ssm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnlam90%2Faws-ssm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnlam90","download_url":"https://codeload.github.com/johnlam90/aws-ssm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnlam90%2Faws-ssm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33722162,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"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":"2026-02-26T16:37:21.727Z","updated_at":"2026-05-31T07:03:37.180Z","avatar_url":"https://github.com/johnlam90.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS SSM Manager CLI\n\nFast, dependency-free CLI for managing AWS EC2 instances, EKS clusters, and Auto Scaling Groups via AWS Systems Manager. Single static binary—no session-manager-plugin, no SSH bastions, no external runtime.\n\n[![Go Version](https://img.shields.io/badge/Go-1.23%2B-blue.svg)](https://golang.org/dl/)\n[![CI Pipeline](https://github.com/johnlam90/aws-ssm/actions/workflows/ci.yml/badge.svg)](https://github.com/johnlam90/aws-ssm/actions/workflows/ci.yml)\n[![coverage](https://img.shields.io/codecov/c/github/johnlam90/aws-ssm?label=coverage\u0026logo=codecov)](https://codecov.io/gh/johnlam90/aws-ssm)\n[![go report](https://goreportcard.com/badge/github.com/johnlam90/aws-ssm)](https://goreportcard.com/report/github.com/johnlam90/aws-ssm)\n[![release](https://img.shields.io/github/v/release/johnlam90/aws-ssm?label=release)](https://github.com/johnlam90/aws-ssm/releases)\n[![downloads](https://img.shields.io/github/downloads/johnlam90/aws-ssm/total?label=downloads)](https://github.com/johnlam90/aws-ssm/releases)\n[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)\n\n\u003e Not affiliated with Amazon Web Services. Uses official AWS SDK v2.\n\n## ✨ Key Features\n\n- 🎯 **Pure Go** - Single binary, zero external dependencies\n- 🖥️ **Built-in TUI Dashboard** - Live view of EC2, EKS, ASG, node groups, and ENIs\n- 🔍 **Interactive Fuzzy Finder** - Multi-select with rich search syntax\n- 🚀 **Remote Command Execution** - Run commands without interactive sessions\n- ☸️ **EKS Management** - Scale nodegroups, update launch templates, view cluster details\n- 📈 **ASG Scaling** - Interactive Auto Scaling Group management\n- 🌐 **Network Inspection** - View all interfaces (Multus, EKS, etc.)\n- 🔌 **Port Forwarding** - Forward local ports to remote services\n- 💾 **Smart Caching** - Configurable TTL \u0026 region-scoped caching\n- 🔐 **Secure** - SSM tunnels, no inbound ports or bastions required\n\n## 🚀 Quick Start\n\n### Installation\n\n**macOS (Homebrew):**\n\n```bash\nbrew tap johnlam90/tap\nbrew install aws-ssm\n```\n\n**Linux/macOS (Manual):**\n\n```bash\ncurl -L https://github.com/johnlam90/aws-ssm/releases/latest/download/aws-ssm-linux-amd64.tar.gz | tar xz\nsudo mv aws-ssm-linux-amd64 /usr/local/bin/aws-ssm\n```\n\n**Windows:**\nDownload from [GitHub Releases](https://github.com/johnlam90/aws-ssm/releases/latest)\n\n**From Source (Go 1.23+):**\n\n```bash\ngo install github.com/johnlam90/aws-ssm@latest\n```\n\n### Basic Usage\n\n**Connect to EC2 instances:**\n\n```bash\n# Interactive selection (recommended)\naws-ssm session\n\n# Direct connection\naws-ssm session web-server\naws-ssm session i-1234567890abcdef0\naws-ssm session 10.0.1.100\n\n# Execute commands\naws-ssm session web-server \"uptime\"\n```\n\n**EKS Management:**\n\n```bash\n# Interactive cluster selection\naws-ssm eks\n\n# Scale nodegroups\naws-ssm eks nodegroup scale\n\n# Update launch template version\naws-ssm eks nodegroup update-lt\n\n# Get specific cluster info\naws-ssm eks production-cluster\n```\n\n**Auto Scaling Groups:**\n\n```bash\n# Interactive ASG scaling\naws-ssm asg scale\n```\n\n**List and inspect:**\n\n```bash\naws-ssm list --tag Environment=production\naws-ssm interfaces web-server  # Network interfaces\n```\n\n## 🖥️ Terminal UI (TUI)\n\nLaunch the dashboard with `aws-ssm tui` (or `aws-ssm` with no subcommand). The TUI streams EC2 instances, EKS clusters, node groups, ASGs, and network interfaces with live controls:\n\n- `r` refreshes the current panel while preserving your selection\n- `/` filters inline; `esc` clears the filter and returns to the full list\n- `enter` connects to SSM sessions or opens contextual actions\n- `s` scales ASGs/node groups via an inline modal with safe editing\n\nHotkeys are shown in each footer, and the status bar reflects the active AWS region/profile.\n\n## 📖 Core Commands\n\n### EC2 Sessions\n\n```bash\n# Interactive selection\naws-ssm session\n\n# Direct connection\naws-ssm session web-server\naws-ssm session i-1234567890abcdef0\n\n# Execute commands\naws-ssm session web-server \"docker ps\"\n\n# Port forwarding\naws-ssm port-forward db-server --remote-port 3306 --local-port 3306\n```\n\n**Search syntax:** `name:web state:running tag:Env=prod !state:stopped`\n\n### EKS Management\n\n```bash\n# View clusters\naws-ssm eks                          # Interactive selection\naws-ssm eks production-cluster       # Specific cluster\n\n# Nodegroup operations\naws-ssm eks nodegroup scale          # Interactive scaling with retry navigation\naws-ssm eks nodegroup update-lt      # Update launch template version\naws-ssm eks nodegroup scale my-cluster my-nodegroup --desired 5\n```\n\n**New in v0.8.0:** Improved navigation flow—press ESC or type \"back\" to return to selection without restarting the command.\n\n**New in v1.0.2:** TUI tables keep headers visible while scrolling, and cache path handling is hardened against traversal keys.\n\n**New in v1.0.3:** The table-header scrolling fix now applies consistently across EC2, EKS clusters, ASGs, Network Interfaces, and Node Groups.\n\n### Auto Scaling Groups\n\n```bash\n# Interactive scaling\naws-ssm asg scale                    # Select ASG and scale interactively\n\n# Direct scaling\naws-ssm asg scale my-asg --desired 10 --min 5 --max 20\n```\n\n### Instance Management\n\n```bash\n# List instances\naws-ssm list --tag Environment=production\n\n# Network interfaces\naws-ssm interfaces web-server\n```\n\n## 🔧 Advanced Features\n\n### Search Syntax\n\n- **Tag filters:** `tag:Environment=production`\n- **State filters:** `state:running`, `!state:stopped`\n- **Name/ID filters:** `name:web`, `id:i-123`\n- **IP filters:** `ip:10.0.1.*`\n- **Fuzzy search:** `web prod backup`\n\n### Interactive Controls\n\n- **Space:** Toggle multi-select\n- **Enter:** Confirm selection\n- **ESC/back:** Return to previous selection (EKS/ASG commands)\n- **c:** Run commands on selected instances\n- **p:** Port forwarding\n\n## ⚡ Configuration\n\n### Global Flags\n\n- `--region, -r` - AWS region\n- `--profile, -p` - AWS profile\n- `--no-color` - Disable colored output\n\n### Config File\n\nCreate `~/.aws-ssm/config.yaml`:\n\n```yaml\ncache:\n  enabled: true\n  ttl_minutes: 30\n```\n\nPrecedence: CLI flags \u003e Environment variables \u003e Config file \u003e Defaults\n\n## 🔐 Requirements\n\n### Prerequisites\n\n- AWS credentials configured (`~/.aws/credentials` or environment)\n- SSM Agent 2.3.68.0+ on target EC2 instances\n- IAM permissions for EC2, SSM, EKS, and Auto Scaling\n\n### IAM Permissions\n\n**User/Role (minimum required):**\n\n```json\n{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [{\n    \"Effect\": \"Allow\",\n    \"Action\": [\n      \"ec2:DescribeInstances\",\n      \"ec2:DescribeNetworkInterfaces\",\n      \"ec2:DescribeLaunchTemplateVersions\",\n      \"ssm:StartSession\",\n      \"ssm:TerminateSession\",\n      \"ssm:SendCommand\",\n      \"eks:DescribeCluster\",\n      \"eks:ListClusters\",\n      \"eks:DescribeNodegroup\",\n      \"eks:ListNodegroups\",\n      \"eks:UpdateNodegroupVersion\",\n      \"autoscaling:DescribeAutoScalingGroups\",\n      \"autoscaling:UpdateAutoScalingGroup\"\n    ],\n    \"Resource\": \"*\"\n  }]\n}\n```\n\n**EC2 Instance Role:**\n\n```json\n{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [{\n    \"Effect\": \"Allow\",\n    \"Action\": [\n      \"ssm:UpdateInstanceInformation\",\n      \"ssmmessages:*\"\n    ],\n    \"Resource\": \"*\"\n  }]\n}\n```\n\n## 🔍 Troubleshooting\n\n| Issue | Solution |\n|-------|----------|\n| No instances found | Verify AWS credentials, region, and IAM permissions |\n| Connection fails | Ensure SSM Agent is running and instance is in \"running\" state |\n| Permission denied | Review IAM permissions for user/role and instance |\n| EKS cluster not found | Check `eks:DescribeCluster` permissions and region |\n\n## 🛠️ Development\n\n```bash\ngit clone https://github.com/johnlam90/aws-ssm.git\ncd aws-ssm\ngo build -o aws-ssm .\ngo test ./...\n```\n\n## 📄 License\n\nMIT License - see [LICENSE](LICENSE)\n\nNot affiliated with AWS. AWS trademarks belong to their owners.\n\n## 🙏 Acknowledgments\n\nBuilt with [AWS SDK Go v2](https://github.com/aws/aws-sdk-go-v2), [Cobra](https://github.com/spf13/cobra), [ssm-session-client](https://github.com/mmmorris1975/ssm-session-client), and [go-fuzzyfinder](https://github.com/ktr0731/go-fuzzyfinder).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnlam90%2Faws-ssm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnlam90%2Faws-ssm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnlam90%2Faws-ssm/lists"}