mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-02-21 20:00:43 -05:00
* provider/scaleway: extract volume validation helpers * provider/scaleway: add server volume property fixes #9499 * provider/scaleway: update `scaleway_server` docu * provider/scaleway: fix volume handling this actually broken when merging the latest SDK update :( * provider/scaleway: fix volume attachment * provider/scaleway: fix volume expectation
1.7 KiB
1.7 KiB
layout, page_title, sidebar_current, description
| layout | page_title | sidebar_current | description |
|---|---|---|---|
| scaleway | Scaleway: server | docs-scaleway-resource-server | Manages Scaleway servers. |
scaleway_server
Provides ARM servers. This allows servers to be created, updated and deleted. For additional details please refer to API documentation.
Example Usage
resource "scaleway_server" "test" {
name = "test"
image = "5faef9cd-ea9b-4a63-9171-9e26bec03dbc"
type = "VC1M"
volume {
size_in_gb = 20
type = "l_ssd"
}
}
Argument Reference
The following arguments are supported:
name- (Required) name of ARM serverimage- (Required) base image of ARM servertype- (Required) type of ARM serverbootscript- (Optional) server bootscripttags- (Optional) list of tags for serverenable_ipv6- (Optional) enable ipv6dynamic_ip_required- (Optional) make server publicly availablesecurity_group- (Optional) assign security group to server
Field name, type, tags, dynamic_ip_required, security_group are editable.
Volume
You can attach additional volumes to your instance, which will share the lifetime
of your scaleway_server resource.
The volume mapping supports the following:
type- (Required) The type of volume. Can be"l_ssd"size_in_gb- (Required) The size of the volume in gigabytes.
Attributes Reference
The following attributes are exported:
id- id of the new resourceprivate_ip- private ip of the new resourcepublic_ip- public ip of the new resource
Import
Instances can be imported using the id, e.g.
$ terraform import scaleway_server.web 5faef9cd-ea9b-4a63-9171-9e26bec03dbc