GCP Compute Machine Image
A Google Cloud Compute Machine Image is a first-class resource that captures the full state of a virtual machine at a point in time, including all attached disks, metadata, instance properties, service-accounts, and network configuration. It can be used to recreate identical VMs quickly or share a golden template across projects and organisations. See the official documentation for full details: https://cloud.google.com/compute/docs/machine-images
Terrafrom Mappings:
google_compute_machine_image.name
Supported Methodsβ
GET: Get GCP Compute Machine Image by "gcp-compute-machine-image-name"LIST: List all GCP Compute Machine Image itemsSEARCH
Possible Linksβ
gcp-cloud-kms-crypto-key-versionβ
A machine image may be protected with customer-managed encryption keys (CMEK); when this option is used it references the specific Cloud KMS Crypto Key Version that encrypts the image data.
gcp-compute-diskβ
The boot disk and any additional data disks attached to the source instance are incorporated into the machine image. When a new instance is created from the machine image, new persistent disks are instantiated from these definitions.
gcp-compute-imageβ
Within a machine image the boot disk is ultimately based on a Compute Image. Thus the machine image indirectly depends on, and records, the image that was used to build the source VM.
gcp-compute-instanceβ
A machine image is created from a source Compute Instance and can in turn be used to launch new instances that replicate the captured configuration.
gcp-compute-networkβ
Network interface settings, including the VPC network IDs, are stored in the machine image so that any VM instantiated from it can attach to the same or equivalent networks.
gcp-compute-snapshotβ
Internally, Google Cloud may use snapshots of the instanceβs disks when building the machine image. Conversely, users can export disks from a machine image as individual snapshots.
gcp-compute-subnetworkβ
The machine image stores the exact subnetwork configuration of each NIC, allowing recreated VMs to provision themselves in the same subnetworks.
gcp-iam-service-accountβ
Service accounts attached to the source instance are recorded in the machine image; any VM launched from the image inherits those service account bindings unless overridden.