terraform-provider-scaleway icon indicating copy to clipboard operation
terraform-provider-scaleway copied to clipboard

docs(instance): update recommended image usage

Open Codelax opened this issue 2 years ago • 0 comments
trafficstars

Currently we can use an image label when creating an instance, we should use the marketplace datasource to resolve it. From:

resource scaleway_instance_server server {
  image = "ubuntu_jammy"
}

To:

data scaleway_marketplace_image ubuntu {
  label = "ubuntu_jammy"
  commercial_type = "DEV1-S"
}

resource scaleway_instance_server server {
  image = data.scaleway_marketplace_image.ubuntu
}

Codelax avatar Jan 20 '23 14:01 Codelax