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:

Table 1. AWS variables
VariableDescriptionMandatoryDefault
INFRA_AWS_AVAILABILITY_ZONESpecifies the availability zone of every server.YesNone
INFRA_AWS_BASTION_PUBLIC_IPEnables or disables attaching an Elastic IP address to the bastion. When disabled, the access IP address is the private IP address of the bastion.Nofalse
INFRA_AWS_BASTION_SUBNET_IDSpecifies the public subnet of the bastion.Yes, when INFRA_AWS_BASTION_PUBLIC_IP is trueNone
INFRA_AWS_PERMISSIONS_BOUNDARY_ARNSpecifies the IAM permissions boundary for the roles that the templates create.NoNone
INFRA_AWS_REGIONSpecifies the AWS region.YesNone
INFRA_AWS_SUBNET_IDSpecifies the subnet of every server. The subnet must be in the availability zone that INFRA_AWS_AVAILABILITY_ZONE names.YesNone
INFRA_AWS_VPC_IDSpecifies the ID of the existing VPC.YesNone

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:

Table 2. Compute Engine variables
VariableDescriptionMandatoryDefault
INFRA_GCE_NETWORKSpecifies the name of the existing VPC network.YesNone
INFRA_GCE_NETWORK_PROJECT_IDSpecifies the Shared VPC host project of the network.NoThe value of INFRA_GCE_PROJECT_ID
INFRA_GCE_PROJECT_IDSpecifies the Google Cloud project ID.YesNone
INFRA_GCE_REGIONSpecifies the Google Cloud region.YesNone
INFRA_GCE_SERVICE_ACCOUNT_EMAILSpecifies an existing service account for the VMs, instead of a service account that the templates create.NoNone
INFRA_GCE_SUBNETWORKSpecifies the name of the existing subnetwork.YesNone
INFRA_GCE_ZONESpecifies the zone of the project and of every server.YesNone

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:

Table 3. Azure variables
VariableDescriptionMandatoryDefault
INFRA_AZURE_LOCATIONSpecifies the Azure location of the resource group.YesNone
INFRA_AZURE_SUBNET_NAMESpecifies the name of the existing subnet.YesNone
INFRA_AZURE_VNET_NAMESpecifies the name of the existing virtual network.YesNone
INFRA_AZURE_VNET_RESOURCE_GROUPSpecifies the resource group of the existing virtual network.YesNone
INFRA_AZURE_ZONESpecifies the availability zone of every server.Yes1

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.