azurerm_chaos_studio_target

Manages a Chaos Studio Target.

Example Usage

resource "azurerm_kubernetes_cluster" "example" {
  name                = "example"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
  dns_prefix          = "acctestaksexample"
  default_node_pool {
    name       = "example-value"
    node_count = "example-value"
    vm_size    = "example-value"
    upgrade_settings {
      max_surge = "example-value"
    }
  }
  identity {
    type = "example-value"
  }
}
resource "azurerm_resource_group" "example" {
  name     = "example-resources"
  location = "West Europe"
}
resource "azurerm_chaos_studio_target" "example" {
  location           = azurerm_resource_group.example.location
  target_resource_id = azurerm_kubernetes_cluster.example.id
  target_type        = "example-value"
}

Arguments Reference

The following arguments are supported:

Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:


Timeouts

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

Import

An existing Chaos Studio Target can be imported into Terraform using the resource id, e.g.

terraform import azurerm_chaos_studio_target.example /{scope}/providers/Microsoft.Chaos/targets/{targetName}