@@ -7,7 +7,8 @@ Manages Scaleway Instance Snapshots.
7
7
# scaleway_instance_snapshot
8
8
9
9
Creates and manages Scaleway Compute Snapshots.
10
- For more information, see [ the documentation] ( https://developers.scaleway.com/en/products/instance/api/#snapshots-756fae ) .
10
+ For more information,
11
+ see [ the documentation] ( https://developers.scaleway.com/en/products/instance/api/#snapshots-756fae ) .
11
12
12
13
## Example
13
14
@@ -18,16 +19,49 @@ resource "scaleway_instance_snapshot" "main" {
18
19
}
19
20
```
20
21
22
+ ## Example with Unified type
23
+
24
+ ``` hcl
25
+ resource "scaleway_instance_volume" "main" {
26
+ type = "l_ssd"
27
+ size_in_gb = 10
28
+ }
29
+
30
+ resource "scaleway_instance_server" "main" {
31
+ image = "ubuntu_jammy"
32
+ type = "DEV1-S"
33
+ root_volume {
34
+ size_in_gb = 10
35
+ volume_type = "l_ssd"
36
+ }
37
+ additional_volume_ids = [
38
+ scaleway_instance_volume.main.id
39
+ ]
40
+ }
41
+
42
+ resource "scaleway_instance_snapshot" "main" {
43
+ volume_id = scaleway_instance_volume.main.id
44
+ type = "unified"
45
+ depends_on = [scaleway_instance_server.main]
46
+ }
47
+ ```
48
+
21
49
## Arguments Reference
22
50
23
51
The following arguments are supported:
24
52
25
53
- ` volume_id ` - (Required) The ID of the volume to take a snapshot from.
54
+ - ` type ` - (Optional) The snapshot's volume type. The possible values are: ` b_ssd ` (Block SSD), ` l_ssd ` (Local SSD) and ` unified ` .
55
+ Updates to this field will recreate a new resource.
26
56
- ` name ` - (Optional) The name of the snapshot. If not provided it will be randomly generated.
27
- - ` zone ` - (Defaults to [ provider] ( ../index.md#zone ) ` zone ` ) The [ zone] ( ../guides/regions_and_zones.md#zones ) in which the snapshot should be created.
28
- - ` project_id ` - (Defaults to [ provider] ( ../index.md#project_id ) ` project_id ` ) The ID of the project the snapshot is associated with.
57
+ - ` zone ` - (Defaults to [ provider] ( ../index.md#zone ) ` zone ` ) The [ zone] ( ../guides/regions_and_zones.md#zones ) in which
58
+ the snapshot should be created.
59
+ - ` project_id ` - (Defaults to [ provider] ( ../index.md#project_id ) ` project_id ` ) The ID of the project the snapshot is
60
+ associated with.
29
61
- ` tags ` - (Optional) A list of tags to apply to the snapshot.
30
62
63
+ -> ** Note:** The type ` unified ` could be instantiated on both ` l_ssd ` and ` b_ssd ` volumes.
64
+
31
65
## Attributes Reference
32
66
33
67
In addition to all above arguments, the following attributes are exported:
@@ -36,7 +70,6 @@ In addition to all above arguments, the following attributes are exported:
36
70
- ` size_in_gb ` - (Optional) The size of the snapshot.
37
71
- ` organization_id ` - The organization ID the snapshot is associated with.
38
72
- ` project_id ` - The project ID the snapshot is associated with.
39
- - ` type ` - The type of the snapshot. The possible values are: ` b_ssd ` (Block SSD), ` l_ssd ` (Local SSD).
40
73
- ` created_at ` - The snapshot creation time.
41
74
42
75
## Import
0 commit comments