alicloud_eflo_node

更新时间:

Provides a Eflo Node resource.

Large computing node.

For information about Eflo Node and how to use it, see What is Node.

-> NOTE: Available since v1.246.0.

Example Usage

Basic Usage

# Before executing this example, you need to confirm with the product team whether the resources are sufficient or you will get an error message with "Failure to check order before create instance"
variable "name" {
  default = "terraform-example"
}

provider "alicloud" {
  region = "cn-hangzhou"
}

data "alicloud_resource_manager_resource_groups" "default" {}

resource "alicloud_eflo_node" "default" {
  period           = "36"
  discount_level   = "36"
  billing_cycle    = "1month"
  classify         = "gpuserver"
  zone             = "cn-hangzhou-b"
  product_form     = "instance"
  payment_ratio    = "0"
  hpn_zone         = "B1"
  server_arch      = "bmserver"
  computing_server = "efg1.nvga1n"
  stage_num        = "36"
  renewal_status   = "AutoRenewal"
  renew_period     = "36"
  status           = "Unused"
}

Argument Reference

The following arguments are supported:

  • install_pai - (Optional) Whether to buy PAI. default value false.
  • billing_cycle - (Optional) Billing cycle
  • classify - (Optional) Classification
  • computing_server - (Optional, Deprecated since v1.261.0) Node Model. Field 'computing_server' has been deprecated from provider version 1.261.0. New field 'machine_type' instead.
  • discount_level - (Optional) Offer Information
  • hpn_zone - (Optional, ForceNew) Cluster Number
  • machine_type - (Optional, ForceNew, Available since v1.261.0) Model
  • payment_ratio - (Optional) Down payment ratio
  • payment_type - (Optional, ForceNew, Computed, Available since v1.261.0) The payment method of the node. Value range: Subscription: fixed fee installment; PayAsYouGo: pay by volume. The default is Subscription.
  • period - (Optional, Int) Prepaid cycle. The unit is Month, please enter an integer multiple of 12 for the annual payment product.
  • product_form - (Optional) Form
  • renew_period - (Optional, Int) Automatic renewal period, in months.

-> NOTE: When setting RenewalStatus to AutoRenewal, it must be set.

  • renewal_status - (Optional) Automatic renewal status, value:
    • AutoRenewal: automatic renewal.
    • ManualRenewal: manual renewal.

The default ManualRenewal.

  • resource_group_id - (Optional, Computed) The ID of the resource group
  • server_arch - (Optional) Architecture
  • stage_num - (Optional) Number of stages
  • status - (Optional, Computed) The status of the resource
  • tags - (Optional, Map) The tag of the resource
  • zone - (Optional, ForceNew) Availability Zone

Attributes Reference

The following attributes are exported:

  • id - The ID of the resource supplied above.
  • create_time - The creation time of the resource
  • region_id - The region ID of the resource

Timeouts

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

  • create - (Defaults to 10 mins) Used when create the Node.
  • delete - (Defaults to 5 mins) Used when delete the Node.
  • update - (Defaults to 5 mins) Used when update the Node.

Import

Eflo Node can be imported using the id, e.g.

$ terraform import alicloud_eflo_node.example <id>