create_instance
Creates a new Compute Engine virtual machine in GCP, allowing specification of project, zone, machine type, and boot disk source image.
Instructions
Create a new Compute Engine instance.
Args:
project_id: The ID of the GCP project
zone: The zone to create the instance in (e.g., "us-central1-a")
instance_name: The name for the new instance
machine_type: The machine type (e.g., "e2-medium")
source_image: The source image for the boot disk (e.g., "projects/debian-cloud/global/images/family/debian-11")
boot_disk_size_gb: The size of the boot disk in GB (default: 10)
network: The network to connect to (default: "default")
subnet: The subnetwork to connect to (optional)
external_ip: Whether to allocate an external IP (default: True)
Returns:
Status message indicating whether the instance was created successfully
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zone | Yes | ||
| subnet | No | ||
| network | No | default | |
| project_id | Yes | ||
| external_ip | No | ||
| machine_type | Yes | ||
| source_image | Yes | ||
| instance_name | Yes | ||
| boot_disk_size_gb | No |