Up-to-date reference of API arguments for RMS Resource Recorder you can get at documentation portal
opentelekomcloud_rms_resource_recorder_v1¶
Manages a RMS recorder resource within OpenTelekomCloud.
-> Only one resource recorder can be configured.
Example Usage¶
Recorder with All Supported Resources¶
variable "topic_urn" {}
variable "bucket_name" {}
variable "delivery_region" {}
resource "opentelekomcloud_rms_resource_recorder_v1" "test" {
agency_name = "rms_tracker_agency"
selector {
all_supported = true
}
obs_channel {
bucket = var.bucket_name
region = var.delivery_region
}
smn_channel {
topic_urn = var.topic_urn
}
}
Recorder with Specified Resources¶
variable "bucket_name" {}
variable "delivery_region" {}
resource "opentelekomcloud_rms_resource_recorder_v1" "test" {
agency_name = "rms_tracker_agency"
selector {
all_supported = false
resource_types = ["vpc.vpcs", "rds.instances", "dms.kafkas", "dms.rabbitmqs", "dms.queues"]
}
obs_channel {
bucket = var.bucket_name
region = var.delivery_region
}
}
Argument Reference¶
The following arguments are supported:
agency_name
- (Required, String) Specifies the IAM agency name which must include permissions for sending notifications through SMN and for writing data into OBS.selector
- (Required, List) Specifies configurations of resource selector. The object structure is documented below.obs_channel
- (Optional, List) Specifies configurations of the OBS bucket used for data dumping. The object structure is documented below.smn_channel
- (Optional, List) Specifies configurations of the SMN channel used to send notifications. The object structure is documented below.
-> At least one obs_channel
or smn_channel
must be configured.
all_supported
- (Required, Bool) Specifies whether to select all supported resources.resource_types
- (Optional, List) Specifies the resource type list.
The obs_channel
block supports:
bucket
- (Required, String) Specifies the OBS bucket name used for data dumping.region
- (Required, String) Specifies the region where this bucket is located.bucket_prefix
- (Optional, String) Specifies the OBS bucket prefix.
The smn_channel
block supports:
topic_urn
- (Required, String) Specifies the SMN topic URN used to send notifications.
Attribute Reference¶
In addition to all arguments above, the following attributes are exported:
id
- The resource ID.retention_period
- The number of days for data storage.region
- The region where this SMN topic is located.project_id
- The project ID where this SMN topic is located.
Import¶
The recorder can be imported by providing domain_id
as resource ID, e.g.
$ terraform import opentelekomcloud_rms_resource_recorder_v1.test domain_id