Skip to content

frostmoln_instance (Data Source)

Look up an instance by ID.

Example Usage

terraform
data "frostmoln_instance" "web" {
  id = "inst-abc123"
}

output "instance_ip" {
  value = data.frostmoln_instance.web.private_ip
}

Schema

Required

  • id (String) The unique identifier of the instance.

Read-Only

  • created_at (String) The timestamp when the instance was created.
  • flavor_id (String) The flavor ID of the instance.
  • flavor_name (String) The flavor name of the instance.
  • image_id (String) The image ID used to create the instance.
  • image_name (String) The image name used to create the instance.
  • name (String) The name of the instance.
  • private_ip (String) The private IP address of the instance.
  • public_ip (String) The public IP address of the instance.
  • status (String) The status of the instance.
  • subnet_id (String) The subnet ID of the instance.
  • tags (Map of String) The tags associated with the instance.
  • vpc_id (String) The VPC ID of the instance, derived from its first network attachment. MAY BE NULL when the platform cannot resolve it (resolution is best-effort), and a multi-NIC instance reports only one of its VPCs. Do not feed this into a RequiresReplace attribute such as frostmoln_instance.vpc_id — a null-to-value transition would plan a destroy and recreate. Reference frostmoln_vpc.<name>.id for that.
  • zone (String) The availability zone of the instance.