Skip to content

Commit e4ba18a

Browse files
author
Quentin Brosse
authored
doc(core): update credentials links (#564)
1 parent b34ecf5 commit e4ba18a

File tree

5 files changed

+15
-17
lines changed

5 files changed

+15
-17
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@
88

99
# Scaleway GO SDK
1010

11-
1211
**:warning: This is an early release, keep in mind that the API can break**
1312

14-
1513
Scaleway is a single way to create, deploy and scale your infrastructure in the cloud. We help thousands of businesses to run their infrastructures easily.
1614

1715
## Documentation
@@ -42,7 +40,7 @@ func main() {
4240

4341
// Create a Scaleway client
4442
client, err := scw.NewClient(
45-
// Get your credentials at https://console.scaleway.com/account/credentials
43+
// Get your credentials at https://console.scaleway.com/project/credentials
4644
scw.WithDefaultOrganizationID("ORGANISATION_ID"),
4745
scw.WithAuth("ACCESS_KEY", "SECRET_KEY"),
4846
)

example_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
func Example_apiClient() {
1313
// Create a Scaleway client
1414
client, err := scw.NewClient(
15-
scw.WithAuth("ACCESS_KEY", "SECRET_KEY"), // Get your credentials at https://console.scaleway.com/account/credentials
15+
scw.WithAuth("ACCESS_KEY", "SECRET_KEY"), // Get your credentials at https://console.scaleway.com/project/credentials
1616
)
1717
if err != nil {
1818
// handle error
@@ -59,7 +59,7 @@ func Example_apiClientWithConfig() {
5959
func Example_listServers() {
6060
// Create a Scaleway client
6161
client, err := scw.NewClient(
62-
scw.WithAuth("ACCESS_KEY", "SECRET_KEY"), // Get your credentials at https://console.scaleway.com/account/credentials
62+
scw.WithAuth("ACCESS_KEY", "SECRET_KEY"), // Get your credentials at https://console.scaleway.com/project/credentials
6363
)
6464
if err != nil {
6565
// handle error
@@ -83,7 +83,7 @@ func Example_listServers() {
8383
func Example_createServer() {
8484
// Create a Scaleway client
8585
client, err := scw.NewClient(
86-
scw.WithAuth("ACCESS_KEY", "SECRET_KEY"), // Get your credentials at https://console.scaleway.com/account/credentials
86+
scw.WithAuth("ACCESS_KEY", "SECRET_KEY"), // Get your credentials at https://console.scaleway.com/project/credentials
8787
scw.WithDefaultOrganizationID("ORGANIZATION_ID"),
8888
scw.WithDefaultZone(scw.ZoneFrPar1),
8989
)
@@ -123,7 +123,7 @@ func Example_createServer() {
123123
func Example_rebootAllServers() {
124124
// Create a Scaleway client
125125
client, err := scw.NewClient(
126-
scw.WithAuth("ACCESS_KEY", "SECRET_KEY"), // Get your credentials at https://console.scaleway.com/account/credentials
126+
scw.WithAuth("ACCESS_KEY", "SECRET_KEY"), // Get your credentials at https://console.scaleway.com/project/credentials
127127
scw.WithDefaultZone(scw.ZoneFrPar1),
128128
)
129129
if err != nil {
@@ -160,7 +160,7 @@ func Example_rebootAllServers() {
160160
func Example_createLoadBalancer() {
161161
// Create a Scaleway client
162162
client, err := scw.NewClient(
163-
scw.WithAuth("ACCESS_KEY", "SECRET_KEY"), // Get your credentials at https://console.scaleway.com/account/credentials
163+
scw.WithAuth("ACCESS_KEY", "SECRET_KEY"), // Get your credentials at https://console.scaleway.com/project/credentials
164164
)
165165
if err != nil {
166166
// handle error

scw/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Recommended config file:
66

77
```yaml
8-
# Get your credentials on https://console.scaleway.com/account/credentials
8+
# Get your credentials on https://console.scaleway.com/project/credentials
99
access_key: SCWXXXXXXXXXXXXXXXXX
1010
secret_key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
1111
default_organization_id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
@@ -46,10 +46,10 @@ scw.NewClient(
4646

4747
| Variable | Description | Legacy variables |
4848
| :----------------------------- | :----------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------ |
49-
| `$SCW_ACCESS_KEY` | Access key of a token ([get yours](https://console.scaleway.com/account/credentials)) | `$SCALEWAY_ACCESS_KEY` (used by terraform) |
50-
| `$SCW_SECRET_KEY` | Secret key of a token ([get yours](https://console.scaleway.com/account/credentials)) | `$SCW_TOKEN` (used by cli), `$SCALEWAY_TOKEN` (used by terraform), `$SCALEWAY_ACCESS_KEY` (used by terraform) |
51-
| `$SCW_DEFAULT_ORGANIZATION_ID` | Your default organization ID ([get yours](https://console.scaleway.com/account/credentials)) | `$SCW_ORGANIZATION` (used by cli),`$SCALEWAY_ORGANIZATION` (used by terraform) |
52-
| `$SCW_DEFAULT_PROJECT_ID` | Your default project ID ([get yours](https://console.scaleway.com/account/credentials)) | |
49+
| `$SCW_ACCESS_KEY` | Access key of a token ([get yours](https://console.scaleway.com/project/credentials)) | `$SCALEWAY_ACCESS_KEY` (used by terraform) |
50+
| `$SCW_SECRET_KEY` | Secret key of a token ([get yours](https://console.scaleway.com/project/credentials)) | `$SCW_TOKEN` (used by cli), `$SCALEWAY_TOKEN` (used by terraform), `$SCALEWAY_ACCESS_KEY` (used by terraform) |
51+
| `$SCW_DEFAULT_ORGANIZATION_ID` | Your default organization ID ([get yours](https://console.scaleway.com/project/credentials)) | `$SCW_ORGANIZATION` (used by cli),`$SCALEWAY_ORGANIZATION` (used by terraform) |
52+
| `$SCW_DEFAULT_PROJECT_ID` | Your default project ID ([get yours](https://console.scaleway.com/project/credentials)) | |
5353
| `$SCW_DEFAULT_REGION` | Your default [region](https://developers.scaleway.com/en/quickstart/#region-and-zone) | `$SCW_REGION` (used by cli),`$SCALEWAY_REGION` (used by terraform) |
5454
| `$SCW_DEFAULT_ZONE` | Your default [availability zone](https://developers.scaleway.com/en/quickstart/#region-and-zone) | `$SCW_ZONE` (used by cli),`$SCALEWAY_ZONE` (used by terraform) |
5555
| `$SCW_API_URL` | Url of the API | - |

scw/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const configFileTemplate = `# Scaleway configuration file
3030
# - Scaleway Terraform Provider (https://www.terraform.io/docs/providers/scaleway/index.html)
3131
3232
# You need an access key and a secret key to connect to Scaleway API.
33-
# Generate your token at the following address: https://console.scaleway.com/account/credentials
33+
# Generate your token at the following address: https://console.scaleway.com/project/credentials
3434
3535
# An access key is a secret key identifier.
3636
{{ if .AccessKey }}access_key: {{.AccessKey}}{{ else }}# access_key: SCW11111111111111111{{ end }}

scw/config_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ func TestConfig_ConfigFile(t *testing.T) {
643643
# - Scaleway Terraform Provider (https://www.terraform.io/docs/providers/scaleway/index.html)
644644
645645
# You need an access key and a secret key to connect to Scaleway API.
646-
# Generate your token at the following address: https://console.scaleway.com/account/credentials
646+
# Generate your token at the following address: https://console.scaleway.com/project/credentials
647647
648648
# An access key is a secret key identifier.
649649
# access_key: SCW11111111111111111
@@ -721,7 +721,7 @@ func TestConfig_ConfigFile(t *testing.T) {
721721
# - Scaleway Terraform Provider (https://www.terraform.io/docs/providers/scaleway/index.html)
722722
723723
# You need an access key and a secret key to connect to Scaleway API.
724-
# Generate your token at the following address: https://console.scaleway.com/account/credentials
724+
# Generate your token at the following address: https://console.scaleway.com/project/credentials
725725
726726
# An access key is a secret key identifier.
727727
access_key: SCW1234567890ABCDEFG
@@ -813,7 +813,7 @@ access_key: SCW1234567890ABCDEFG
813813
# - Scaleway Terraform Provider (https://www.terraform.io/docs/providers/scaleway/index.html)
814814
815815
# You need an access key and a secret key to connect to Scaleway API.
816-
# Generate your token at the following address: https://console.scaleway.com/account/credentials
816+
# Generate your token at the following address: https://console.scaleway.com/project/credentials
817817
818818
# An access key is a secret key identifier.
819819
access_key: SCW1234567890ABCDEFG

0 commit comments

Comments
 (0)