The cluster resource allows you to manage an HCS Azure Managed Application.
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
}
managed_application_name
.managed_application_name
.false
.managed_application_name
with 'mrg-' prepended.hcs_plan_defaults
data source).172.25.16.0/24
.consul_external_endpoint
is true
.hcs_cluster_root_token
resource, this field is no longer valid.hcs_cluster_root_token
resource, this field is no longer valid.managed_resource_group_name
.timeouts
Optional:
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