Cloud provider provisioning variables
Set the INFRA_AWS_, INFRA_GCE_, and INFRA_AZURE_ variables to place the nodes of a provisioned Kubernetes cluster in an existing network on AWS, Compute Engine, or Azure.
The installer maps these variables to the Terraform variables of the selected provider when INFRA_TERRAFORM_VARS_FILE is empty. AWS, Compute Engine, and Azure always use an existing network, and the installer places all nodes in one subnet and one zone. Set only the variables for the provider that INFRA_TERRAFORM_PROVIDER selects.
AWS variables
The following table lists the AWS variables:
| Variable | Description | Mandatory | Default |
|---|---|---|---|
| INFRA_AWS_AVAILABILITY_ZONE | Specifies the availability zone of every server. | Yes | None |
| INFRA_AWS_BASTION_PUBLIC_IP | Enables or disables attaching an Elastic IP address to the bastion. When disabled, the access IP address is the private IP address of the bastion. | No | false |
| INFRA_AWS_BASTION_SUBNET_ID | Specifies the public subnet of the bastion. | Yes, when INFRA_AWS_BASTION_PUBLIC_IP is true | None |
| INFRA_AWS_PERMISSIONS_BOUNDARY_ARN | Specifies the IAM permissions boundary for the roles that the templates create. | No | None |
| INFRA_AWS_REGION | Specifies the AWS region. | Yes | None |
| INFRA_AWS_SUBNET_ID | Specifies the subnet of every server. The subnet must be in the availability zone that INFRA_AWS_AVAILABILITY_ZONE names. | Yes | None |
| INFRA_AWS_VPC_ID | Specifies the ID of the existing VPC. | Yes | None |
On AWS, INFRA_IMAGE_ID is the AMI name, which Canonical owns, and not the ami- ID. The name must exist in the region that INFRA_AWS_REGION names, otherwise the plan fails with the error Your query returned no results on data.aws_ami.ubuntu. For example:
INFRA_IMAGE_ID="ubuntu/images/hvm-ssd-gp3/ubuntu-resolute-26.04-amd64-server-20261028"
The templates tag the subnets with kubernetes.io/cluster/<INFRA_CLUSTER_NAME>=shared and call the aws CLI, which the installer image includes.
Compute Engine variables
The following table lists the Compute Engine variables:
| Variable | Description | Mandatory | Default |
|---|---|---|---|
| INFRA_GCE_NETWORK | Specifies the name of the existing VPC network. | Yes | None |
| INFRA_GCE_NETWORK_PROJECT_ID | Specifies the Shared VPC host project of the network. | No | The value of INFRA_GCE_PROJECT_ID |
| INFRA_GCE_PROJECT_ID | Specifies the Google Cloud project ID. | Yes | None |
| INFRA_GCE_REGION | Specifies the Google Cloud region. | Yes | None |
| INFRA_GCE_SERVICE_ACCOUNT_EMAIL | Specifies an existing service account for the VMs, instead of a service account that the templates create. | No | None |
| INFRA_GCE_SUBNETWORK | Specifies the name of the existing subnetwork. | Yes | None |
| INFRA_GCE_ZONE | Specifies the zone of the project and of every server. | Yes | None |
On Compute Engine, INFRA_IMAGE_ID is the image. The installer also exports GOOGLE_CREDENTIALS for the Kubernetes installation, with the content of the key file that GOOGLE_APPLICATION_CREDENTIALS names, unless you set the variable yourself. The cloud provider role reads the service account key from this variable and stores it in the Secret that the cloud controller manager and the persistent disk CSI driver use. The templates create service accounts named taikun-ccf-<shortened cluster name>-vm-sa and taikun-ccf-<shortened cluster name>-pv-sa.
Azure variables
The following table lists the Azure variables:
| Variable | Description | Mandatory | Default |
|---|---|---|---|
| INFRA_AZURE_LOCATION | Specifies the Azure location of the resource group. | Yes | None |
| INFRA_AZURE_SUBNET_NAME | Specifies the name of the existing subnet. | Yes | None |
| INFRA_AZURE_VNET_NAME | Specifies the name of the existing virtual network. | Yes | None |
| INFRA_AZURE_VNET_RESOURCE_GROUP | Specifies the resource group of the existing virtual network. | Yes | None |
| INFRA_AZURE_ZONE | Specifies the availability zone of every server. | Yes | 1 |
On Azure, INFRA_IMAGE_ID is the marketplace path of the image. When you leave the value empty, the installer always passes its pinned Ubuntu 26.04 image to Terraform, because the default inside the templates can be a version that Azure has withdrawn. The pinned version fixes the kernel that the GPU driver image is built for, so test another version before you use it. The az vm image list command also lists versions that Azure cannot deploy, whereas the az vm image show command fails for such a version:
az vm image show --location <region> --urn Canonical:ubuntu-26_04-lts:server:<version>
The templates create a resource group named after INFRA_CLUSTER_NAME for the VMs. For the Kubernetes installation, the installer also exports the variables that the Azure cloud provider role reads: RESOURCE_GROUP (the cluster name), LOCATION (INFRA_AZURE_LOCATION), AZURE_VNET_NAME, AZURE_VNET_RESOURCE_GROUP, and AZURE_SUBNET_NAME.
Access IP address with an existing network
On Compute Engine and Azure, and on AWS when INFRA_AWS_BASTION_PUBLIC_IP is not true, the templates create no public IP address, so the access IP address is the private IP address of the bastion. SSH, HAProxy, and the kubeconfig use that address. Run the installer where it can reach this address, for example, through a VPN, through peering, or on a host inside the network.
