» alicloud_yundun_bastionhost_instance

Cloud Bastionhost instance resource ("Yundun_bastionhost" is the short term of this product).

» Example Usage

Basic Usage

  provider "alicloud" {
    endpoints {
        bssopenapi = "business.aliyuncs.com"
        }
  }

  resource "alicloud_yundun_bastionhost_instance" "default" {
        description        = "Terraform-test"
        plan_code          = "alpha.professional"
        period             = "1"
        vswitch_id         = "v-testVswitch"
        security_group_ids = "sg-test"
  }

» Argument Reference

The following arguments are supported:

  • plan_code - (Required) Plan code of the Cloud Bastionhost to produce. (alpha.professional, alpha.basic, alpha.premium)
  • description - (Required) Description of the instance. This name can have a string of 1 to 63 characters.
  • period - (ForceNew) Duration for initially producing the instance. Valid values: [1~9], 12, 24, 36. Default to 1. At present, the provider does not support modify "period".
  • vswitch_id - (Required, ForceNew) vSwtich ID configured to bastionhost
  • security_group_ids - (Required) security group IDs configured to bastionhost
  • tags - (Optional, Available in v1.67.0+) A mapping of tags to assign to the resource.

» Attributes Reference

The following attributes are exported:

  • id - The ID of the instance resource of Yundun_bastionhost.

» Import

Yundun_bastionhost instance can be imported using the id, e.g.

$ terraform import alicloud_yundun_bastionhost.example bastionhost-exampe123456