Skip to content

Commit eb972ea

Browse files
Quentin Brosseremyleone
andauthored
doc(core): update credentials links (#1419)
Co-authored-by: Rémy Léone <[email protected]>
1 parent 80ed4a3 commit eb972ea

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

docs/commands/config.md

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

1111
|Environment Variable|Description|
1212
|--|--|
13-
|SCW_ACCESS_KEY|The access key of a token (create a token at https://console.scaleway.com/account/credentials)|
14-
|SCW_SECRET_KEY|The secret key of a token (create a token at https://console.scaleway.com/account/credentials)|
15-
|SCW_DEFAULT_ORGANIZATION_ID|The default organization ID (get your organization ID at https://console.scaleway.com/account/credentials)|
13+
|SCW_ACCESS_KEY|The access key of a token (create a token at https://console.scaleway.com/project/credentials)|
14+
|SCW_SECRET_KEY|The secret key of a token (create a token at https://console.scaleway.com/project/credentials)|
15+
|SCW_DEFAULT_ORGANIZATION_ID|The default organization ID (get your organization ID at https://console.scaleway.com/project/credentials)|
16+
|SCW_DEFAULT_PROJECT_ID|The default project ID (get your project ID at https://console.scaleway.com/project/credentials)|
1617
|SCW_DEFAULT_REGION|The default region|
1718
|SCW_DEFAULT_ZONE|The default availability zone|
1819
|SCW_API_URL|URL of the API|

internal/core/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ More info: https://github.com/scaleway/scaleway-sdk-go/tree/master/scw#scaleway-
103103
// validateClient validate a client configuration and make sure all mandatory setting are present.
104104
// This function is only call for commands that require a valid client.
105105
func validateClient(client *scw.Client) error {
106-
credentialsHint := "You can get your credentials here: https://console.scaleway.com/account/credentials"
106+
credentialsHint := "You can get your credentials here: https://console.scaleway.com/project/credentials"
107107

108108
accessKey, _ := client.GetAccessKey()
109109
if accessKey == "" {

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/account/credentials"
108+
hint = "Try to generate a new token here https://console.scaleway.com/project/credentials"
109109
}
110110

111111
return nil, &CliError{

internal/namespaces/config/commands.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@ func configRoot() *core.Command {
3838
for _, envVar := range [][5]string{
3939
{"|", "Environment Variable", "|", "Description", "|"},
4040
{"|", "--", "|", "--", "|"},
41-
{"|", scw.ScwAccessKeyEnv, "|", "The access key of a token (create a token at https://console.scaleway.com/account/credentials)", "|"},
42-
{"|", scw.ScwSecretKeyEnv, "|", "The secret key of a token (create a token at https://console.scaleway.com/account/credentials)", "|"},
43-
{"|", scw.ScwDefaultOrganizationIDEnv, "|", "The default organization ID (get your organization ID at https://console.scaleway.com/account/credentials)", "|"},
41+
{"|", scw.ScwAccessKeyEnv, "|", "The access key of a token (create a token at https://console.scaleway.com/project/credentials)", "|"},
42+
{"|", scw.ScwSecretKeyEnv, "|", "The secret key of a token (create a token at https://console.scaleway.com/project/credentials)", "|"},
43+
{"|", scw.ScwDefaultOrganizationIDEnv, "|", "The default organization ID (get your organization ID at https://console.scaleway.com/project/credentials)", "|"},
44+
{"|", scw.ScwDefaultProjectIDEnv, "|", "The default project ID (get your project ID at https://console.scaleway.com/project/credentials)", "|"},
4445
{"|", scw.ScwDefaultRegionEnv, "|", "The default region", "|"},
4546
{"|", scw.ScwDefaultZoneEnv, "|", "The default availability zone", "|"},
4647
{"|", scw.ScwAPIURLEnv, "|", "URL of the API", "|"},

0 commit comments

Comments
 (0)