arvancloud_iaas_image (Resource)
Manages an IaaS image by importing it from a URL into a specific availability zone.
Example Usage
resource "arvancloud_iaas_image" "my_image" {
name = "my-custom-debian"
url = "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-12.9.0-amd64-netinst.iso"
availability_zone = "ir-central1-a"
# Optional: set minimum requirements for servers using this image
min_disk = 10
min_ram = 512
enable_uefi = false
}
output "image_id" {
value = arvancloud_iaas_image.my_image.id
}
output "image_status" {
value = arvancloud_iaas_image.my_image.status
}
output "image_size_bytes" {
value = arvancloud_iaas_image.my_image.size
}
output "image_region" {
value = arvancloud_iaas_image.my_image.region
}
Schema
Required
availability_zone(String) Availability zone where the image will be imported (e.g.ir-central1-a).name(String) Name of the image.url(String) URL to import the image from.
Optional
enable_uefi(Boolean) Whether UEFI boot is enabled for this image.min_disk(Number) Minimum disk size in GB required to boot this image.min_ram(Number) Minimum RAM in MB required to boot this image.
Read-Only
created_at(String) Timestamp when the image was created.disk_format(String) Disk format of the image (e.g.qcow2,raw).distribution_name(String) Name of the Linux distribution (if applicable).id(String) Unique identifier of the image assigned by the API.region(String) Region where the image is stored (e.g.ir-central1).size(Number) Size of the image in bytes.ssh_key(Boolean) Whether the image supports SSH key authentication.ssh_password(Boolean) Whether the image supports password authentication.status(String) Current status of the image (e.g.active,queued).
Import
Import is supported using the following syntax:
terraform import arvancloud_iaas_image.example ir-central1-a:img123