Skip to content

Commit 517ee40

Browse files
authored
docs: update links leading to IAM (#663)
1 parent b056d3c commit 517ee40

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This SDK enables you to interact with Scaleway APIs.
1212

1313
## Getting Started
1414

15-
You'll need a pair of access and secret keys to connect to Scaleway API. Please check the [documentation](https://www.scaleway.com/en/docs/console/my-project/how-to/generate-api-key/) on how to retrieve them.
15+
You'll need a pair of access and secret keys to connect to Scaleway API. Please check the [documentation](https://www.scaleway.com/en/docs/identity-and-access-management/iam/how-to/create-api-keys/) on how to retrieve them.
1616

1717
**A minimal setup** would look like this:
1818

packages/clients/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This SDK enables you to interact with Scaleway APIs.
99

1010
## Getting Started
1111

12-
You'll need a pair of access and secret keys to connect to Scaleway API. Please check the [documentation](https://www.scaleway.com/en/docs/console/my-project/how-to/generate-api-key/) on how to retrieve them.
12+
You'll need a pair of access and secret keys to connect to Scaleway API. Please check the [documentation](https://www.scaleway.com/en/docs/identity-and-access-management/iam/how-to/create-api-keys/) on how to retrieve them.
1313

1414
**A minimal setup** would look like this:
1515

packages/clients/src/scw/__tests__/client-ini-profile.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ describe('assertValidAuthenticationSecrets', () => {
4646
assertValidAuthenticationSecrets(value)
4747
}).toThrow(
4848
new Error(
49-
`Invalid secrets, accessKey & secretKey must be defined. See https://www.scaleway.com/en/docs/console/my-project/how-to/generate-api-key/`,
49+
`Invalid secrets, accessKey & secretKey must be defined. See https://www.scaleway.com/en/docs/identity-and-access-management/iam/how-to/create-api-keys/`,
5050
),
5151
)
5252
})
@@ -59,7 +59,7 @@ describe('assertValidAuthenticationSecrets', () => {
5959
})
6060
}).toThrow(
6161
new Error(
62-
`Invalid access key format 'SCW0123', expected SCWXXXXXXXXXXXXXXXXX format. See https://www.scaleway.com/en/docs/console/my-project/how-to/generate-api-key/`,
62+
`Invalid access key format 'SCW0123', expected SCWXXXXXXXXXXXXXXXXX format. See https://www.scaleway.com/en/docs/identity-and-access-management/iam/how-to/create-api-keys/`,
6363
),
6464
)
6565
})
@@ -72,7 +72,7 @@ describe('assertValidAuthenticationSecrets', () => {
7272
})
7373
}).toThrow(
7474
new Error(
75-
`Invalid secret key format 'e4b83996-4c60-449a-98d2', expected a UUID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. See https://www.scaleway.com/en/docs/console/my-project/how-to/generate-api-key/`,
75+
`Invalid secret key format 'e4b83996-4c60-449a-98d2', expected a UUID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. See https://www.scaleway.com/en/docs/identity-and-access-management/iam/how-to/create-api-keys/`,
7676
),
7777
)
7878
})

packages/clients/src/scw/client-ini-profile.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,17 +99,17 @@ export function assertValidAuthenticationSecrets(
9999
): asserts obj is AuthenticationSecrets {
100100
if (!(obj.accessKey && obj.secretKey)) {
101101
throw new Error(
102-
`Invalid secrets, accessKey & secretKey must be defined. See https://www.scaleway.com/en/docs/console/my-project/how-to/generate-api-key/`,
102+
`Invalid secrets, accessKey & secretKey must be defined. See https://www.scaleway.com/en/docs/identity-and-access-management/iam/how-to/create-api-keys/`,
103103
)
104104
}
105105
if (!isAccessKey(obj.accessKey)) {
106106
throw new Error(
107-
`Invalid access key format '${obj.accessKey}', expected SCWXXXXXXXXXXXXXXXXX format. See https://www.scaleway.com/en/docs/console/my-project/how-to/generate-api-key/`,
107+
`Invalid access key format '${obj.accessKey}', expected SCWXXXXXXXXXXXXXXXXX format. See https://www.scaleway.com/en/docs/identity-and-access-management/iam/how-to/create-api-keys/`,
108108
)
109109
}
110110
if (!isSecretKey(obj.secretKey)) {
111111
throw new Error(
112-
`Invalid secret key format '${obj.secretKey}', expected a UUID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. See https://www.scaleway.com/en/docs/console/my-project/how-to/generate-api-key/`,
112+
`Invalid secret key format '${obj.secretKey}', expected a UUID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. See https://www.scaleway.com/en/docs/identity-and-access-management/iam/how-to/create-api-keys/`,
113113
)
114114
}
115115
}

packages/clients/src/scw/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export const createAdvancedClient = (...configs: ClientConfig[]): Client => {
6868
* Creates a Scaleway client with a profile.
6969
*
7070
* @example
71-
* Creates a client with credentials & default values (see https://www.scaleway.com/en/docs/console/my-project/how-to/generate-api-key/):
71+
* Creates a client with credentials & default values (see https://www.scaleway.com/en/docs/identity-and-access-management/iam/how-to/create-api-keys/):
7272
* ```
7373
* import { createClient } from '@scaleway/sdk'
7474
*
@@ -82,7 +82,7 @@ export const createAdvancedClient = (...configs: ClientConfig[]): Client => {
8282
* ```
8383
*
8484
* @example
85-
* Creates a client by loading values from the environment (see https://www.scaleway.com/en/docs/console/my-project/how-to/generate-api-key/#how-to-use-your-api-key)
85+
* Creates a client by loading values from the environment (see https://www.scaleway.com/en/docs/identity-and-access-management/iam/how-to/create-api-keys/)
8686
* or the config file created by CLI `scw init` (see https://www.scaleway.com/en/cli/):
8787
* ```
8888
* import { loadProfileFromConfigurationFile } from '@scaleway/configuration-loader'

0 commit comments

Comments
 (0)