alicloud_image_import

Import a copy of your local on-premise file to ECS, and appear as a custom replacement in the corresponding domain.

Example Usage

resource "alicloud_image_import" "this" {
  description  = "test import image"
  architecture = "x86_64"
  image_name   = "test-import-image"
  license_type = "Auto"
  platform     = "Ubuntu"
  os_type      = "linux"
  disk_device_mapping {
    disk_image_size = 5
    oss_bucket      = "testimportimage"
    oss_object      = "root.img"
  }
}

Argument Reference

The following arguments are supported:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Attributes Reference0

The following attributes are exported:

Import

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

$ terraform import alicloud_image_import.default m-uf66871ape***yg1q***