3131unic --profile my-profile
3232unic --region ap-northeast-2
3333
34+ # Enable verbose debug logging (writes to ~/.config/unic/logs/unic.log)
35+ unic --verbose
36+ unic -v
37+
3438# Initialize config file
3539unic init # Create default config
3640unic init --force # Overwrite existing config
@@ -40,32 +44,100 @@ unic init --force # Overwrite existing config
4044
4145` ~/.config/unic/config.yaml ` (created via ` unic init ` or auto-generated on first run)
4246
47+ ### Legacy Format (Flat)
48+
4349``` yaml
44- # Simple format
4550default_profile : my-profile
4651default_region : ap-northeast-2
4752` ` `
4853
54+ ### Context-Based Format
55+
4956` ` ` yaml
50- # Context-based format
5157current : dev-sso
5258
59+ defaults :
60+ region : us-east-1
61+
5362contexts :
63+ # SSO authentication
5464 - name : dev-sso
55- profile : dev-sso
5665 region : ap-northeast-2
66+ auth_type : sso
67+ sso_start_url : https://my-sso-portal.awsapps.com/start
68+ sso_account_id : " 123456789012"
69+ sso_role_name : DeveloperRole
5770
58- - name : prod-admin
59- profile : prod-admin
71+ # Assume Role (cross-account)
72+ - name : prod-assume
6073 region : us-east-1
74+ auth_type : assume_role
75+ profile : base-profile
76+ role_arn : arn:aws:iam::987654321098:role/CrossAccountRole
77+ external_id : optional-external-id
78+
79+ # Credential profile
80+ - name : staging-creds
81+ region : eu-west-1
82+ auth_type : credential
83+ profile : staging
6184` ` `
6285
86+ ### Auth Types
87+
88+ | Auth Type | Required Fields | Description |
89+ |-----------|----------------|-------------|
90+ | ` sso` | `sso_start_url`, `sso_account_id`, `sso_role_name` | AWS SSO portal login with token caching |
91+ | `credential` | `profile` | Uses `~/.aws/credentials` profile directly |
92+ | `assume_role` | `profile`, `role_arn` | Assumes a cross-account role from a base profile |
93+
6394**Priority**: CLI flags (`--profile`, `--region`) > context settings > config defaults > hardcoded defaults (`us-east-1`)
6495
6596# # Currently Implemented Features
6697
6798| Service | Feature | Status |
6899|---------|---------|--------|
100+ | EC2 | SSM Session Manager (connect to running, SSM-managed instances) | ✅ Implemented |
101+ | VPC | VPC Browser (VPCs → Subnets → Available IPs with reserved-IP exclusion) | ✅ Implemented |
102+ | RDS | RDS Browser (list, start/stop, failover, Aurora cluster support, auto-polling) | ✅ Implemented |
103+ | Route53 | DNS Browser (Hosted Zones → Records → Record Detail, public/private zones) | ✅ Implemented |
104+ | Secrets Manager | Secrets Browser (list secrets, view key-value pairs or raw values) | ✅ Implemented |
105+
106+ # # TUI Key Bindings
107+
108+ # ## Global Navigation
109+
110+ | Key | Action |
111+ |-----|--------|
112+ | `j`/`k` or `↑`/`↓` | Navigate list |
113+ | `Enter` | Select item |
114+ | `Esc` | Go back one screen |
115+ | `q` | Quit (on service list) |
116+ | `H` | Jump to home (service list) |
117+ | `C` | Open context switcher |
118+ | `/` | Toggle filter mode |
119+ | `Ctrl+C` | Force quit |
120+
121+ # ## RDS Detail Actions
122+
123+ | Key | Action | Condition |
124+ |-----|--------|-----------|
125+ | `s` | Start database | Instance/cluster is stopped |
126+ | `x` | Stop database | Instance/cluster is available |
127+ | `f` | Failover database | Multi-AZ standalone or Aurora cluster |
128+ | `r` | Refresh status | Always |
129+
130+ # ## Context Switcher
131+
132+ | Key | Action |
133+ |-----|--------|
134+ | `Enter` | Switch to selected context |
135+ | `a` | Add new context (wizard) |
136+ | `Esc` | Back |
137+
138+ # ## Filtering
139+
140+ Available on : EC2 instances, VPC/Subnets, RDS instances, Route53 zones/records, Secrets Manager. Press `/` to enter filter mode, type to search, `Esc` or `Enter` to exit filter mode.
69141| EC2 | SSM Session Manager (connect to EC2 instances) | ✅ Implemented |
70142| EC2 | Security Group Browser (list/filter SGs, view inbound/outbound rules) | ✅ Implemented |
71143| VPC | VPC Browser (VPCs → subnets → available IPs) | ✅ Implemented |
0 commit comments