alicloud_cloud_monitor_service_hybrid_double_write
更新时间:
Provides a Cloud Monitor Service Hybrid Double Write resource.
For information about Cloud Monitor Service Hybrid Double Write and how to use it, see What is Hybrid Double Write.
-> NOTE: Available since v1.210.0.
Example Usage
Basic Usage
variable "name" {
default = "tf-example"
}
data "alicloud_account" "default" {
}
resource "alicloud_cms_namespace" "source" {
namespace = var.name
}
resource "alicloud_cms_namespace" "default" {
namespace = "${var.name}-source"
}
resource "alicloud_cloud_monitor_service_hybrid_double_write" "default" {
source_namespace = alicloud_cms_namespace.source.id
source_user_id = data.alicloud_account.default.id
namespace = alicloud_cms_namespace.default.id
user_id = data.alicloud_account.default.id
}
Argument Reference
The following arguments are supported:
source_namespace
- (Required, ForceNew) Source Namespace.source_user_id
- (Required, ForceNew) Source UserId.namespace
- (Required, ForceNew) Target Namespace.user_id
- (Required, ForceNew) Target UserId.
Attributes Reference
The following attributes are exported:
id
- The resource ID in terraform of Hybrid Double Write. It formats as<source_namespace>:<source_user_id>
.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the Hybrid Double Write.delete
- (Defaults to 5 mins) Used when delete the Hybrid Double Write.
Import
Cloud Monitor Service Hybrid Double Write can be imported using the id, e.g.
$ terraform import alicloud_cloud_monitor_service_hybrid_double_write.example <source_namespace>:<source_user_id>
文档内容是否对您有帮助?