Files
opentf/website/source/docs/providers/scaleway/d/image.html.markdown
George Christou 61277c0dbd website/docs: Run terraform fmt on code examples (#12075)
* docs/vsphere: Fix code block

* docs: Convert `...` to `# ...` to allow `terraform fmt`ing

* docs: Trim trailing whitespace

* docs: First-pass run of `terraform fmt` on code examples
2017-02-19 00:48:50 +02:00

1.1 KiB

layout, page_title, sidebar_current, description
layout page_title sidebar_current description
scaleway Scaleway: scaleway_image docs-scaleway-datasource-image Get information on a Scaleway image.

scaleway_image

Use this data source to get the ID of a registered Image for use with the scaleway_server resource.

Example Usage

data "scaleway_image" "ubuntu" {
  architecture = "arm"
  name         = "Ubuntu Precise"
}

resource "scaleway_server" "base" {
  name  = "test"
  image = "${data.scaleway_image.ubuntu.id}"
  type  = "C1"
}

Argument Reference

  • architecture - (Required) any supported Scaleway architecture, e.g. x86_64, arm

  • name_filter - (Optional) Regexp to match Image name by

  • name - (Optional) Exact name of desired Image

Attributes Reference

id is set to the ID of the found Image. In addition, the following attributes are exported:

  • architecture - architecture of the Image, e.g. arm or x86_64

  • organization - uuid of the organization owning this Image

  • public - is this a public bootscript

  • creation_date - date when image was created