Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrected example Scaleway code, cleared up token confusion #12177

Merged
merged 1 commit into from Feb 22, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 14 additions & 9 deletions website/source/docs/providers/scaleway/index.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ Here is an example that will setup the following:

```hcl
provider "scaleway" {
organization = ""
access_key = ""
organization = "<YOUR-ACCESS-KEY>"
 token = "<YOUR-GENERATED-TOKEN>"
region = "par1"
}

Expand Down Expand Up @@ -75,22 +75,27 @@ resource "scaleway_security_group_rule" "https_accept" {
}
```

You'll need to provide your Scaleway organization access key
(available in Scaleway panel in *Credentials > Tokens > access key*)
and token (you can generate it in the same section), so that Terraform can connect.
If you don't want to put credentials in your configuration file,
You'll need to provide your Scaleway organization **access key** and **token**.

Your access key can be found on your Scaleway control panel, in the *Credentials*
tab of the management panes. It is under the *Tokens* subsection, but is labelled
seperately as **access key**.

Your **token** can be generated by selecting to "Create new token" under the same
subsection as above. This does not require further input, but giving each token a
friendly-name is suggested.

If you do not want to put credentials in your configuration file,
you can leave them out:

```
provider "scaleway" {
organization = ""
token = ""
region = "par1"
}
```

...and instead set these environment variables:

- **SCALEWAY_ORGANIZATION**: Your Scaleway `organization` access key
- **SCALEWAY_TOKEN**: Your API access `token`
- **SCALEWAY_TOKEN**: Your API access `token`, generated by you
- **SCALEWAY_REGION**: The Scaleway region