alicloud_edas_namespace

更新时间:

Provides a EDAS Namespace resource.

For information about EDAS Namespace and how to use it, see What is Namespace.

-> NOTE: Available since v1.173.0.

Example Usage

Basic Usage


provider "alicloud" {
  region = var.region
}

variable "region" {
  default = "cn-hangzhou"
}
variable "name" {
  default = "tfexample"
}

resource "alicloud_edas_namespace" "default" {
  debug_enable         = false
  description          = var.name
  namespace_logical_id = "${var.region}:${var.name}"
  namespace_name       = var.name
}

Argument Reference

The following arguments are supported:

  • debug_enable - (Optional) Specifies whether to enable remote debugging.
  • description - (Optional) The description of the namespace, The description can be up to 128 characters in length.
  • namespace_logical_id - (Required, ForceNew) The ID of the namespace.
    • The ID of a custom namespace is in the region ID:namespace identifier format. An example is cn-beijing:tdy218.
    • The ID of the default namespace is in the region ID format. An example is cn-beijing.
  • namespace_name - (Required) The name of the namespace, The name can be up to 63 characters in length.

Attributes Reference

The following attributes are exported:

  • id - The resource ID in terraform of Namespace.

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • create - (Defaults to 1 mins) Used when create the Namespace.
  • delete - (Defaults to 1 mins) Used when delete the Namespace.
  • update - (Defaults to 1 mins) Used when update the Namespace.

Import

EDAS Namespace can be imported using the id, e.g.

$ terraform import alicloud_edas_namespace.example <id>