-
-
Notifications
You must be signed in to change notification settings - Fork 264
Expand file tree
/
Copy pathcredentials.json.example
More file actions
70 lines (70 loc) · 2.71 KB
/
credentials.json.example
File metadata and controls
70 lines (70 loc) · 2.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
[
{
"type": "json",
"path": "~/.aws/sso/cache/kiro-auth-token.json",
"comment": "Kiro IDE credentials (JSON with refreshToken, accessToken, profileArn)"
},
{
"type": "json",
"path": "~/.aws/sso/cache/your-sso-cache-file.json",
"comment": "AWS SSO OIDC credentials (JSON with clientId, clientSecret, refreshToken)"
},
{
"type": "sqlite",
"path": "~/.local/share/kiro-cli/data.sqlite3",
"comment": "kiro-cli SQLite database (AWS SSO OIDC)"
},
{
"type": "refresh_token",
"refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"profile_arn": "arn:aws:codewhisperer:us-east-1:123456789012:profile/abc123",
"region": "us-east-1",
"comment": "Direct refresh token (from .env or Kiro IDE traffic)"
},
{
"type": "json",
"path": "C:\\MyAccounts\\kiro_jsons",
"comment": "Folder with multiple credential files - all files will be scanned (non-recursive)"
},
{
"type": "sqlite",
"path": "~/kiro-accounts/",
"comment": "Folder with multiple SQLite databases (kiro-cli) - all .sqlite3 files will be scanned (non-recursive)"
},
{
"comment": "=== ADVANCED: Per-Account Parameter Overrides ===",
"comment2": "The following examples show optional per-account parameters:",
"comment3": "- profile_arn: AWS CodeWhisperer profile ARN (for Kiro Desktop auth)",
"comment4": "- region: SSO region for OIDC token refresh (where AWS IAM Identity Center is located)",
"comment5": "- api_region: Q API region for Q Developer API calls (where Q endpoints are available)",
"comment6": "Use these only if you need different regions/profiles for different accounts.",
"comment7": "- Also you can use optional ~enable~ parameter to disable individual accounts."
},
{
"type": "json",
"path": "~/.aws/sso/cache/account-eu.json",
"enabled": true,
"profile_arn": "arn:aws:codewhisperer:eu-central-1:123456789012:profile/xyz789",
"region": "eu-west-1",
"api_region": "eu-central-1",
"comment": "ADVANCED: Account with custom regions (SSO in eu-west-1, Q API in eu-central-1)"
},
{
"type": "sqlite",
"path": "~/.local/share/kiro-cli/data-us.sqlite3",
"enabled": true,
"profile_arn": "arn:aws:codewhisperer:us-east-1:987654321098:profile/abc456",
"region": "us-east-1",
"api_region": "us-east-1",
"comment": "ADVANCED: Account with explicit US regions"
},
{
"type": "refresh_token",
"refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.different_token...",
"profile_arn": "arn:aws:codewhisperer:ap-southeast-1:111222333444:profile/def789",
"region": "ap-southeast-1",
"api_region": "ap-southeast-1",
"enabled": true,
"comment": "ADVANCED: Account with APAC region overrides"
}
]