> For the complete documentation index, see [llms.txt](https://thorstenkramm.gitbook.io/saltstack/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://thorstenkramm.gitbook.io/saltstack/salt-cloud/scaleway.md).

# Scaleway

Hinterlegen Sie den öffentlichen SSH-Schlüssel des Salt-Masters, damit dieser in jeder neuen VM hinterlegt wird. Klicken Sie in der oberen rechten Ecke auf Ihr Benutzerprofil. Wählen Sie dann "Credentials" aus und fügen Sie einen neuen SSH Schlüssel hinzu.

Sofern Sie es noch nicht getan haben, generieren Sie ein API-Token-Paar.

<figure><img src="/files/iAsrPZExsEhpY35uECRx" alt=""><figcaption><p>Scaleway Sicherheitseinstellungen</p></figcaption></figure>

Tragen Sie den `Access Key` und den `Secret Key` als Token in die Datei `/etc/salt/cloud.providers.d/scaleway.conf` ein.

```yaml
my-scaleway-config:
  access_key: <organization ID>
  token: xxx-yyy-zzz-12345-abcdefg
  driver: scaleway
  key_filename: /etc/salt/cloud-privkey.pem
```

> Als access\_key tragen Sie Ihre Scaleway organization ID ein.

{% hint style="danger" %}
Binden Sie die privaten SSH-Schlüssel nicht aus dem Verzeichnis `/root/.ssh` ein. Dies wird zu einem Fehler wie diesem führen. `salt-cloud: error: There was a profile error: The defined ssh_keyfile '/root/.ssh/id_rsa' does not exist` Kopieren Sie den Schlüssel beispielsweise nach `/etc/salt.`

```
cp /root/.ssh/id_ed25519 /etc/salt/cloud-privkey.pem
```

{% endhint %}

Prüfen Sie, ob eine Verbindung zu Scaleway-API aufgebaut werden kann.

```
salt-cloud --list-images my-scaleway-config
```

Legen Sie eine Datei `/etc/salt/cloud.profiles/scaleway.conf` an.

```
ubuntu_xenial_s:
  provider: my-scaleway-config
  image: 005fa2c5-3563-4682-a62f-111a98fa2149
  commercial_type: VC1S
  script_args: -l
  minion:
    master: <your_master>
debian_s:
  provider: my-scaleway-config
  image: 5da80087-ea0a-482d-80d2-e2e50622f8e0
  commercial_type: VC1S
  script_args: -l
  minion:
    master: <your_master>

debian_start1:
  provider: my-scaleway-config
  image: 5da80087-ea0a-482d-80d2-e2e50622f8e0
  commercial_type: START1-XS
  script_args: -l
  minion:
    master: <your_master>
```

`salt-cloud -p debian_start1 debian-minion-1`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://thorstenkramm.gitbook.io/saltstack/salt-cloud/scaleway.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
