» alicloud_yundun_dbaudit_instance

Cloud DBaudit instance resource ("Yundun_dbaudit" is the short term of this product).

» Example Usage

Basic Usage

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

  resource "alicloud_yundun_dbaudit_instance" "default" {
        description       = "Terraform-test"
        plan_code         = "alpha.professional"
        period            = "1"
        vswitch_id        = "v-testVswitch"

» Argument Reference

The following arguments are supported:

  • plan_code - (Required) Plan code of the Cloud DBAudit 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 - (Required, ForceNew) Duration for initially producing the instance. Valid values: [1~9], 12, 24, 36. Default to 12. At present, the provider does not support modify "period".
  • vswitch_id - (Required, ForceNew) vSwtich ID configured to audit
  • tags - (Optional, Available in v1.67.0+) A mapping of tags to assign to the resource.
  • resource_group_id - (Optional, Available in v1.87.0+) The Id of resource group which the DBaudit Instance belongs. If not set, the resource is created in the default resource group.

» Attributes Reference

The following attributes are exported:

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

» Import

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

$ terraform import alicloud_yundun_dbaudit_instance.example dbaudit-exampe123456