» alicloud_image_export

Export a custom image to the OSS bucket in the same region as the custom image.

» Example Usage

resource "alicloud_image_export" "default" {
  image_id           = "m-bp1gxy***"
  oss_bucket         = "ecsimageexportconfig"
  oss_prefix         = "ecsExport"

» Argument Reference

The following arguments are supported:

  • image_id - (Required, ForceNew) The source image ID.
  • oss_bucket - (Required, ForceNew) Save the exported OSS bucket.
  • oss_prefix - (Optional, ForceNew) The prefix of your OSS Object. It can be composed of numbers or letters, and the character length is 1 ~ 30.

» Timeouts

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

  • create - (Defaults to 20 mins) Used when exporting the image (until it reaches the initial Available status).

» Attributes Reference0

The following attributes are exported:

  • id - ID of the image.