juju_kubernetes_cloud (Resource)

A resource that represent a Juju Cloud for existing controller.

Example Usage

resource "juju_kubernetes_cloud" "my-k8s-cloud" {
  name              = "my-k8s-cloud"
  kubernetes_config = file("<path-to-my-kubennetes-cloud-config>.yaml")
}

resource "juju_model" "my-model" {
  name       = "my-model"
  credential = juju_kubernetes_cloud.my-k8s-cloud.credential
  cloud {
    name = juju_kubernetes_cloud.my-k8s-cloud.name
  }
}

Schema

Required

  • name (String) The name of the cloud. Changing this value will cause the cloud to be destroyed and recreated by terraform.

Optional

  • kubernetes_config (String, Sensitive) The kubernetes config file path for the cloud. Cloud credentials will be added to the Juju controller for you.

  • parent_cloud_name (String) The parent cloud name, for adding a k8s cluster from an existing cloud. Changing this value will cause the cloud to be destroyed and recreated by terraform. Note that this value must be set when running against a JAAS controller.

  • parent_cloud_region (String) The parent cloud region name, for adding a k8s cluster from an existing cloud. Changing this value will cause the cloud to be destroyed and recreated by terraform. Note that this value must be set when running against a JAAS controller.

  • skip_service_account_creation (Boolean) If set to true, the Juju Terraform provider will not create a service account and associated role within the K8s cluster and override the authentication info in the K8s config. This way it does not need to connect to the K8s API when adding a k8s cloud.

Read-Only

  • credential (String) The name of the credential created for this cloud.

  • id (String) The ID of this resource.