2020-03-18 18:46:47 -04:00
|
|
|
---
|
|
|
|
description: >
|
|
|
|
The Scaleway Packer builder is able to create new images for use with Scaleway
|
|
|
|
|
|
|
|
BareMetal and Virtual cloud server. The builder takes a source image, runs any
|
|
|
|
|
|
|
|
provisioning necessary on the image after launching it, then snapshots it into
|
|
|
|
|
|
|
|
a reusable image. This reusable image can then be used as the foundation of
|
|
|
|
new
|
|
|
|
|
|
|
|
servers that are launched within Scaleway.
|
|
|
|
layout: docs
|
|
|
|
page_title: Scaleway - Builders
|
2020-04-02 19:39:47 -04:00
|
|
|
sidebar_title: Scaleway
|
2020-03-18 18:46:47 -04:00
|
|
|
---
|
|
|
|
|
|
|
|
# Scaleway Builder
|
|
|
|
|
|
|
|
Type: `scaleway`
|
|
|
|
|
|
|
|
The `scaleway` Packer builder is able to create new images for use with
|
|
|
|
[Scaleway](https://www.scaleway.com). The builder takes a source image, runs
|
|
|
|
any provisioning necessary on the image after launching it, then snapshots it
|
|
|
|
into a reusable image. This reusable image can then be used as the foundation
|
|
|
|
of new servers that are launched within Scaleway.
|
|
|
|
|
|
|
|
The builder does _not_ manage snapshots. Once it creates an image, it is up to
|
|
|
|
you to use it or delete it.
|
|
|
|
|
|
|
|
## Configuration Reference
|
|
|
|
|
|
|
|
There are many configuration options available for the builder. They are
|
|
|
|
segmented below into two categories: required and optional parameters. Within
|
|
|
|
each category, the available configuration keys are alphabetized.
|
|
|
|
|
|
|
|
In addition to the options listed here, a
|
2020-03-31 17:40:07 -04:00
|
|
|
[communicator](/docs/templates/communicator) can be configured for this
|
2020-09-09 11:33:38 -04:00
|
|
|
builder. In addition to the options defined there, a private key file
|
|
|
|
can also be supplied to override the typical auto-generated key:
|
|
|
|
|
|
|
|
@include 'helper/communicator/SSH-Private-Key-File-not-required.mdx'
|
2020-03-18 18:46:47 -04:00
|
|
|
|
|
|
|
### Required:
|
|
|
|
|
2020-10-07 06:02:08 -04:00
|
|
|
@include 'builder/scaleway/Config-required.mdx'
|
2020-03-18 18:46:47 -04:00
|
|
|
|
|
|
|
### Optional:
|
|
|
|
|
2020-10-07 06:02:08 -04:00
|
|
|
@include 'builder/scaleway/Config-not-required.mdx'
|
2020-03-18 18:46:47 -04:00
|
|
|
|
|
|
|
## Basic Example
|
|
|
|
|
|
|
|
Here is a basic example. It is completely valid as soon as you enter your own
|
|
|
|
access tokens:
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"type": "scaleway",
|
2020-10-07 06:02:08 -04:00
|
|
|
"project_id": "YOUR PROJECT ID",
|
|
|
|
"access_key": "YOUR ACCESS KEY",
|
|
|
|
"secret_key": "YOUR SECRET KEY",
|
2020-03-18 18:46:47 -04:00
|
|
|
"image": "UUID OF THE BASE IMAGE",
|
2020-10-07 06:02:08 -04:00
|
|
|
"zone": "fr-par-1",
|
|
|
|
"commercial_type": "DEV1-S",
|
2020-03-18 18:46:47 -04:00
|
|
|
"ssh_username": "root",
|
|
|
|
"ssh_private_key_file": "~/.ssh/id_rsa"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2020-09-04 19:50:31 -04:00
|
|
|
When you do not specify the `ssh_private_key_file`, a temporary SSH keypair
|
2020-03-18 18:46:47 -04:00
|
|
|
is generated to connect the server. This key will only allow the `root` user to
|
|
|
|
connect the server.
|