alicloud_cloud_phone_instance

更新时间:

Provides a Cloud Phone Instance resource.

cloud phone instance.

For information about Cloud Phone Instance and how to use it, see What is Instance.

-> NOTE: Available since v1.243.0.

Example Usage

Basic Usage


variable "name" {
  default = "terraform-example"
}

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

resource "alicloud_cloud_phone_policy" "defaultjZ1gi0" {
}

resource "alicloud_cloud_phone_instance_group" "defaultYHMlTO" {
  instance_group_spec = "acp.basic.small"
  policy_group_id     = alicloud_cloud_phone_policy.defaultjZ1gi0.id
  instance_group_name = "AutoCreateGroupName"
  period              = "1"
  number_of_instances = "1"
  charge_type         = "PostPaid"
  image_id            = "imgc-075cllfeuazh03tg9"
  period_unit         = "Hour"
  auto_renew          = false
  amount              = "1"
  auto_pay            = false
  gpu_acceleration    = false
}


resource "alicloud_cloud_phone_instance" "default" {
  android_instance_group_id = alicloud_cloud_phone_instance_group.defaultYHMlTO.id
  android_instance_name     = "CreateInstanceName"
}

Deleting alicloud_cloud_phone_instance or removing it from your configuration

Terraform cannot destroy resource alicloud_cloud_phone_instance. Terraform will remove this resource from the state file, however resources may remain.

Argument Reference

The following arguments are supported:

  • android_instance_group_id - (Optional, ForceNew) The ID of the instance group to which the instance belongs
  • android_instance_name - (Optional) The instance name

Attributes Reference

The following attributes are exported:

  • id - The ID of the resource supplied above.

Timeouts

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

  • create - (Defaults to 5 mins) Used when create the Instance.
  • update - (Defaults to 5 mins) Used when update the Instance.

Import

Cloud Phone Instance can be imported using the id, e.g.

$ terraform import alicloud_cloud_phone_instance.example <id>