Cloud DBaudit instance resource ("Yundun_dbaudit" is the short term of this product).
Basic Usage
provider "alicloud" {
endpoints {
bssopenapi = "business.aliyuncs.com"
}
region = "cn-hangzhou"
}
data "alicloud_zones" "default" {
available_resource_creation = "VSwitch"
}
data "alicloud_vpcs" "default" {
name_regex = "default-NODELETING"
}
data "alicloud_vswitches" "default" {
vpc_id = data.alicloud_vpcs.default.ids.0
zone_id = data.alicloud_zones.default.zones.0.id
}
resource "alicloud_yundun_dbaudit_instance" "default" {
description = "tf-example"
plan_code = "alpha.professional"
period = "1"
vswitch_id = data.alicloud_vswitches.default.ids.0
}
alicloud_yundun_dbaudit_instance
or removing it from your configurationThe alicloud_yundun_dbaudit_instance
resource allows you to manage yundun dbaudit instance, but Terraform cannot destroy it.
Deleting the subscription resource or removing it from your configuration
will remove it from your state file and management, but will not destroy the yundun_dbaudit_instance
.
You can resume managing the subscription yundun_dbaudit_instance via the AlibabaCloud Console.
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) Duration for initially producing the instance. Valid values: [1~9], 12, 24, 36. At present, the provider does not support modify "period".
The following attributes are exported:
id
- The ID of the instance resource of Yundun_dbaudit.Yundun_dbaudit instance can be imported using the id, e.g.
$ terraform import alicloud_yundun_dbaudit_instance.example dbaudit-exampe123456