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 valuefalse.billing_cycle- (Optional) Billing cycleclassify- (Optional) Classificationcomputing_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 Informationhpn_zone- (Optional, ForceNew) Cluster Numbermachine_type- (Optional, ForceNew, Available since v1.261.0) Modelpayment_ratio- (Optional) Down payment ratiopayment_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) Formrenew_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 groupserver_arch- (Optional) Architecturestage_num- (Optional) Number of stagesstatus- (Optional, Computed) The status of the resourcetags- (Optional, Map) The tag of the resourcezone- (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 resourceregion_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>
该文章对您有帮助吗?