google_compute_instance_template

Nivis Nix constructor for the google_compute_instance_template resource (provider google). This reference is derived from the provider binary's own schema via nivis gen — it always matches the real provider.

Constructor
{
  name,
  machine_type,
  can_ip_forward ? null,
  description ? null,
  id ? null,
  instance_description ? null,
  key_revocation_action_type ? null,
  labels ? null,
  metadata ? null,
  metadata_startup_script ? null,
  min_cpu_platform ? null,
  cfg_name ? null,
  name_prefix ? null,
  project ? null,
  region ? null,
  resource_manager_tags ? null,
  resource_policies ? null,
  tags ? null,
  advanced_machine_features ? null,
  confidential_instance_config ? null,
  disk ? null,
  guest_accelerator ? null,
  network_interface ? null,
  network_performance_config ? null,
  reservation_affinity ? null,
  scheduling ? null,
  service_account ? null,
  shielded_instance_config ? null,
  timeouts ? null,
  workload_identity_config ? null,
  overrides ? {}
}
Required arguments
  • machine_type
Optional arguments
  • can_ip_forward (defaults to null)
  • description (defaults to null)
  • id (defaults to null)
  • instance_description (defaults to null)
  • key_revocation_action_type (defaults to null)
  • labels (defaults to null)
  • metadata (defaults to null)
  • metadata_startup_script (defaults to null)
  • min_cpu_platform (defaults to null)
  • cfg_name (defaults to null)
  • name_prefix (defaults to null)
  • project (defaults to null)
  • region (defaults to null)
  • resource_manager_tags (defaults to null)
  • resource_policies (defaults to null)
  • tags (defaults to null)
  • advanced_machine_features (defaults to null)
  • confidential_instance_config (defaults to null)
  • disk (defaults to null)
  • guest_accelerator (defaults to null)
  • network_interface (defaults to null)
  • network_performance_config (defaults to null)
  • reservation_affinity (defaults to null)
  • scheduling (defaults to null)
  • service_account (defaults to null)
  • shielded_instance_config (defaults to null)
  • timeouts (defaults to null)
  • workload_identity_config (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • creation_timestamp
  • effective_labels
  • metadata_fingerprint
  • numeric_id
  • self_link
  • self_link_unique
  • tags_fingerprint
  • terraform_labels
Example
google_compute_instance_template {
  name = "compute_instance_template";
  machine_type = …;  # required
}

The reference for every provider is generated from the provider's own schema, not copied from its documentation.