google_compute_instance

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

Constructor
{
  name,
  machine_type,
  allow_stopping_for_update ? null,
  can_ip_forward ? null,
  deletion_policy ? null,
  deletion_protection ? null,
  description ? null,
  desired_status ? null,
  enable_display ? null,
  erase_windows_vss_signature ? null,
  hostname ? null,
  id ? null,
  key_revocation_action_type ? null,
  labels ? null,
  metadata ? null,
  metadata_startup_script ? null,
  min_cpu_platform ? null,
  cfg_name ? null,
  partner_metadata ? null,
  project ? null,
  resource_policies ? null,
  tags ? null,
  zone ? null,
  advanced_machine_features ? null,
  attached_disk ? null,
  boot_disk ? null,
  confidential_instance_config ? null,
  guest_accelerator ? null,
  instance_encryption_key ? null,
  network_interface ? null,
  network_performance_config ? null,
  params ? null,
  reservation_affinity ? null,
  scheduling ? null,
  scratch_disk ? null,
  service_account ? null,
  shielded_instance_config ? null,
  timeouts ? null,
  workload_identity_config ? null,
  overrides ? {}
}
Required arguments
  • machine_type
Optional arguments
  • allow_stopping_for_update (defaults to null)
  • can_ip_forward (defaults to null)
  • deletion_policy (defaults to null)
  • deletion_protection (defaults to null)
  • description (defaults to null)
  • desired_status (defaults to null)
  • enable_display (defaults to null)
  • erase_windows_vss_signature (defaults to null)
  • hostname (defaults to null)
  • id (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)
  • partner_metadata (defaults to null)
  • project (defaults to null)
  • resource_policies (defaults to null)
  • tags (defaults to null)
  • zone (defaults to null)
  • advanced_machine_features (defaults to null)
  • attached_disk (defaults to null)
  • boot_disk (defaults to null)
  • confidential_instance_config (defaults to null)
  • guest_accelerator (defaults to null)
  • instance_encryption_key (defaults to null)
  • network_interface (defaults to null)
  • network_performance_config (defaults to null)
  • params (defaults to null)
  • reservation_affinity (defaults to null)
  • scheduling (defaults to null)
  • scratch_disk (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:

  • cpu_platform
  • creation_timestamp
  • current_status
  • effective_labels
  • instance_id
  • label_fingerprint
  • metadata_fingerprint
  • self_link
  • tags_fingerprint
  • terraform_labels
Example
google_compute_instance {
  name = "compute_instance";
  machine_type = …;  # required
}

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