@@ -69,7 +69,7 @@ resource "scaleway_instance_snapshot" "server_snapshot" {
6969resource "scaleway_instance_image" "image" {
7070 name = "image_with_extra_volumes"
7171 root_volume_id = scaleway_instance_snapshot.server_snapshot.id
72- additional_volumes = [
72+ additional_volume_ids = [
7373 scaleway_instance_snapshot.volume_snapshot.id
7474 ]
7575}
@@ -83,9 +83,6 @@ The following arguments are supported:
8383- ` name ` - (Optional) The name of the image. If not provided it will be randomly generated.
8484- ` architecture ` - (Optional, default ` x86_64 ` ) The architecture the image is compatible with. Possible values are: ` x86_64 ` or ` arm ` .
8585- ` additional_volume_ids ` - (Optional) List of IDs of the snapshots of the additional volumes to be attached to the image.
86-
87- -> ** Important:** For now it is only possible to have 1 additional_volume.
88-
8986- ` tags ` - (Optional) A list of tags to apply to the image.
9087- ` public ` - (Optional) Set to ` true ` if the image is public.
9188- ` zone ` - (Defaults to provider ` zone ` ) The [ zone] ( ../guides/regions_and_zones.md#zones ) in which the image should be created.
@@ -104,26 +101,27 @@ In addition to all arguments above, the following attributes are exported:
104101- ` from_server_id ` - ID of the server the image is based on (in case it is a backup).
105102- ` state ` - State of the image. Possible values are: ` available ` , ` creating ` or ` error ` .
106103- ` organization_id ` - The organization ID the image is associated with.
104+ - ` root_volume ` - The description of the root volume attached to the image.
105+
106+ -> The ` root_volume ` block contains :
107+ - ` id ` - The ID of the volume.
108+ - ` name ` - The name of the volume.
109+ - ` size ` - The size of the volume.
110+ - ` volume_type ` - The type of volume, possible values are ` l_ssd ` and ` sbs_snapshot ` .
111+
107112- ` additional_volumes ` - The description of the extra volumes attached to the image.
108113
109114 -> The ` additional_volumes ` block contains :
110115 - ` id ` - The ID of the volume.
111116 - ` name ` - The name of the volume.
112- - ` export_uri ` - The export URI of the volume.
113117 - ` size ` - The size of the volume.
114- - ` volume_type ` - The type of volume, possible values are ` l_ssd ` and ` b_ssd ` .
115- - ` creation_date ` - Date of the volume creation.
116- - ` modification_date ` - Date of volume latest update.
117- - ` organization ` - The organization ID the volume is associated with.
118- - ` project ` - ID of the project the volume is associated with
118+ - ` volume_type ` - The type of volume, possible values are ` l_ssd ` and ` sbs_snapshot ` .
119119 - ` tags ` - List of tags associated with the volume.
120- - ` state ` - State of the volume.
121- - ` zone ` - The [ zone] ( ../guides/regions_and_zones.md#zones ) in which the volume is.
122120 - ` server ` - Description of the server containing the volume (in case the image is a backup from a server).
123121
124- -> The ` server ` block contains :
125- - ` id ` - ID of the server containing the volume.
126- - ` name ` - Name of the server containing the volume.
122+ -> The ` server ` block contains :
123+ - ` id ` - ID of the server containing the volume.
124+ - ` name ` - Name of the server containing the volume.
127125
128126## Import
129127
0 commit comments