» scaleway_baremetal_server

Creates and manages Scaleway Compute Baremetal servers. For more information, see the documentation.

» Examples

» Basic

data "scaleway_account_ssh_key" "main" {
  name = "main"

resource "scaleway_baremetal_server" "base" {
  zone        = "fr-par-2"
  offer       = "GP-BM1-M"
  os          = "d17d6872-0412-45d9-a198-af82c34d3c5c"
  ssh_key_ids = [data.scaleway_account_ssh_key.main]

» Arguments Reference

The following arguments are supported:

  • offer - (Required) The offer name or UUID of the baremetal server. Use this endpoint to find the right offer.
  • os - (Required) The UUID of the os to install on the server. Use this endpoint to find the right OS ID.
  • ssh_key_ids - (Required) List of SSH keys allowed to connect to the server.
  • name - (Optional) The name of the server.

  • hostname - (Optional) The hostname of the server.

  • description - (Optional) A description for the server.

  • tags - (Optional) The tags associated with the server.

  • zone - (Defaults to provider zone) The zone in which the server should be created.

  • organization_id - (Defaults to provider organization_id) The ID of the organization the server is associated with.

» Attributes Reference

In addition to all above arguments, the following attributes are exported:

  • id - The ID of the server.
  • offer_id - The ID of the offer.
  • os_id - The ID of the os.
  • ips - (List of) The IPs of the server.
    • id - The ID of the IP.
    • address - The address of the IP.
    • reverse - The reverse of the IP.
    • type - The type of the IP.
  • domain - The domain of the server.

» Import

Baremetal servers can be imported using the {zone}/{id}, e.g.

$ terraform import scaleway_baremetal_server.web fr-par-2/11111111-1111-1111-1111-111111111111