» panos_panorama_gke_cluster

This resource allows you to add/update/delete a GKE cluster in a cluster group.

This resource requires that the GCP plugin be installed.

» Import Name

<gke_cluster_group>:<name>

» Example Usage

resource "panos_panorama_gke_cluster" "cluster" {
    gke_cluster_group = panos_panorama_gke_cluster_group.grp.name
    name = "cluster1"
    gcp_zone = "us-central-1b"
    cluster_credential = panos_panorama_gcp_account.gke.name
}

resource "panos_panorama_gke_cluster_group" "grp" {
    name = "myCluster"
    gcp_project_credential = panos_panorama_gcp_account.gcp.name
    device_group = panos_panorama_device_group.dg.name
    template_stack = panos_panorama_template_stack.ts.name
}

resource "panos_panorama_device_group" "dg" {
    name = "my device group"
}

resource "panos_panorama_template_stack" "ts" {
    name = "myTemplateStack"
}

resource "panos_panorama_gcp_account" "gcp" {
    name = "myGcpAccount"
    project_id = "gcp-project-123"
    service_account_credential_type = "gcp"
    credential_file = file("gcp-credentials.json")
}

resource "panos_panorama_gcp_account" "gke" {
    name = "myGkeAccount"
    project_id = "gcp-project-123"
    service_account_credential_type = "gke"
    credential_file = file("gcp-credentials.json")
}

» Argument Reference

The following arguments are supported: