scaleway_user_data

Provides user data for servers. For additional details please refer to API documentation.

Example Usage

resource "scaleway_server" "base" {
  name = "test"
  # ubuntu 14.04
  image = "5faef9cd-ea9b-4a63-9171-9e26bec03dbc"
  type = "C1"
  state = "stopped"
}

resource "scaleway_user_data" "gcp" {
    server = "${scaleway_server.base.id}"
    key = "gcp_username"
    value = "supersecret"
}

Argument Reference

The following arguments are supported:

  • server - (Required) ID of server to associate the user data with
  • key - (Required) The key of the user data object
  • value - (Required) The value of the user data object

Import

Instances can be imported using the id, e.g.

$ terraform import scaleway_user_data.gcp userdata-<server-id>-<key>

© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/scaleway/r/user_data.html