|
|
|
|
@ -53,6 +53,9 @@ can also be supplied to override the typical auto-generated key:
|
|
|
|
|
Here is a basic example. It is completely valid as soon as you enter your own
|
|
|
|
|
access tokens:
|
|
|
|
|
|
|
|
|
|
<Tabs>
|
|
|
|
|
<Tab heading="JSON">
|
|
|
|
|
|
|
|
|
|
```json
|
|
|
|
|
{
|
|
|
|
|
"type": "scaleway",
|
|
|
|
|
@ -66,6 +69,25 @@ access tokens:
|
|
|
|
|
"ssh_private_key_file": "~/.ssh/id_rsa"
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
</Tab>
|
|
|
|
|
|
|
|
|
|
<Tab heading="HCL2">
|
|
|
|
|
|
|
|
|
|
```hcl
|
|
|
|
|
builders "scaleway" {
|
|
|
|
|
project_id = "YOUR PROJECT ID"
|
|
|
|
|
access_key = "YOUR ACCESS KEY"
|
|
|
|
|
secret_key = "YOUR SECRET KEY"
|
|
|
|
|
image = "UUID OF THE BASE IMAGE"
|
|
|
|
|
zone = "fr-par-1"
|
|
|
|
|
commercial_type = "DEV1-S"
|
|
|
|
|
ssh_username = "root"
|
|
|
|
|
ssh_private_key_file = "~/.ssh/id_rsa"
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
</Tab>
|
|
|
|
|
</Tabs>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
When you do not specify the `ssh_private_key_file`, a temporary SSH keypair
|
|
|
|
|
is generated to connect the server. This key will only allow the `root` user to
|
|
|
|
|
|