Skip to content

Commit 0599aeb

Browse files
authored
docs(iam): update api-key links (#3448)
1 parent c27b80c commit 0599aeb

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

docs/commands/config.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ The following environment variables are supported:
1414

1515
|Environment Variable|Description|
1616
|--|--|
17-
|SCW_ACCESS_KEY|The access key of a token (create a token at https://console.scaleway.com/project/credentials)|
18-
|SCW_SECRET_KEY|The secret key of a token (create a token at https://console.scaleway.com/project/credentials)|
19-
|SCW_DEFAULT_ORGANIZATION_ID|The default organization ID (get your organization ID at https://console.scaleway.com/project/credentials)|
20-
|SCW_DEFAULT_PROJECT_ID|The default project ID (get your project ID at https://console.scaleway.com/project/credentials)|
17+
|SCW_ACCESS_KEY|The access key of a token (create a token at https://console.scaleway.com/iam/api-keys)|
18+
|SCW_SECRET_KEY|The secret key of a token (create a token at https://console.scaleway.com/iam/api-keys)|
19+
|SCW_DEFAULT_ORGANIZATION_ID|The default organization ID (get your organization ID at https://console.scaleway.com/iam/api-keys)|
20+
|SCW_DEFAULT_PROJECT_ID|The default project ID (get your project ID at https://console.scaleway.com/iam/api-keys)|
2121
|SCW_DEFAULT_REGION|The default region|
2222
|SCW_DEFAULT_ZONE|The default availability zone|
2323
|SCW_API_URL|URL of the API|

internal/core/command_interceptor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func sdkStdErrorInterceptor(ctx context.Context, args interface{}, runner Comman
105105
var hint string
106106
switch resourceName := sdkError.Resource; resourceName {
107107
case "account_token":
108-
hint = "Try to generate a new token here https://console.scaleway.com/project/credentials"
108+
hint = "Try to generate a new token here https://console.scaleway.com/iam/api-keys"
109109
}
110110

111111
return nil, &CliError{

internal/namespaces/config/commands.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ func configRoot() *core.Command {
4444
for _, envVar := range [][5]string{
4545
{"|", "Environment Variable", "|", "Description", "|"},
4646
{"|", "--", "|", "--", "|"},
47-
{"|", scw.ScwAccessKeyEnv, "|", "The access key of a token (create a token at https://console.scaleway.com/project/credentials)", "|"},
48-
{"|", scw.ScwSecretKeyEnv, "|", "The secret key of a token (create a token at https://console.scaleway.com/project/credentials)", "|"},
49-
{"|", scw.ScwDefaultOrganizationIDEnv, "|", "The default organization ID (get your organization ID at https://console.scaleway.com/project/credentials)", "|"},
50-
{"|", scw.ScwDefaultProjectIDEnv, "|", "The default project ID (get your project ID at https://console.scaleway.com/project/credentials)", "|"},
47+
{"|", scw.ScwAccessKeyEnv, "|", "The access key of a token (create a token at https://console.scaleway.com/iam/api-keys)", "|"},
48+
{"|", scw.ScwSecretKeyEnv, "|", "The secret key of a token (create a token at https://console.scaleway.com/iam/api-keys)", "|"},
49+
{"|", scw.ScwDefaultOrganizationIDEnv, "|", "The default organization ID (get your organization ID at https://console.scaleway.com/iam/api-keys)", "|"},
50+
{"|", scw.ScwDefaultProjectIDEnv, "|", "The default project ID (get your project ID at https://console.scaleway.com/iam/api-keys)", "|"},
5151
{"|", scw.ScwDefaultRegionEnv, "|", "The default region", "|"},
5252
{"|", scw.ScwDefaultZoneEnv, "|", "The default availability zone", "|"},
5353
{"|", scw.ScwAPIURLEnv, "|", "URL of the API", "|"},

0 commit comments

Comments
 (0)