hcs_cluster (Resource)

The cluster resource allows you to manage an HCS Azure Managed Application.

Example Usage

data "hcs_consul_versions" "default" {}

data "hcs_plan_defaults" "default" {}

resource "hcs_cluster" "example" {
  resource_group_name      = var.resource_group_name
  managed_application_name = var.managed_application_name
  email                    = var.email
  cluster_mode             = var.cluster_mode
  vnet_cidr                = var.vnet_cidr
  min_consul_version       = data.hcs_consul_versions.default.recommended
  location                 = var.location
  plan_name                = data.hcs_plan_defaults.default.plan_name
}

Schema

Required

Optional

Read-Only

Nested Schema for timeouts

Optional:

Import

Import is supported using the following syntax:

# The import ID is {Managed Application ID}:{Cluster Name}
terraform import hcs_cluster.example /subscriptions/1234-5678-91011-1213-141516/resourceGroups/hcs-tf-example/providers/Microsoft.Solutions/applications/hcs-tf-example:hcs-tf-example