Skip to main content


4.11 Ensure That Compute Instances Have Confidential Computing Enabled (Automated)

Profile Applicability

• Level 2


Google Cloud encrypts data at-rest and in-transit, but it is necessary to decrypt customer data for processing. Confidential Computing is a breakthrough technology which encrypts data in-use while processing the data. Confidential Computing environments keep data encrypted in memory and elsewhere outside the central processing unit (CPU).

Confidential VMs leverage the Secure Encrypted Virtualization (SEV) feature of Advanced Micro Devices (AMD) EPYC(TM) CPUs. Customer data stays encrypted during use, indexing, querying, or training usage. The encryption keys are hardware generated per VM, and are not exportable. Thanks to built-in hardware optimizations of both performance and security, there is no significant performance penalty to Confidential Computing workloads.


Confidential Computing enables customers' sensitive code and other data encrypted in memory during processing. Google does not have access to the encryption keys. Confidential VM can help alleviate concerns about risk related to either dependency on Google infrastructure or Google insiders' access to customer data in the clear.


  • Confidential Computing for Compute instances does not support live migration. Unlike regular Compute instances, Confidential VMs experience disruptions during maintenance events like a software or hardware update.
  • Additional charges may be incurred when enabling this security feature. See for more info.



Confidential Computing is currently only supported on N2D machines. To learn more about types of N2D machines, visit

From Console:

  1. Go to the VM instances page by visiting:

  2. Click on the instance name to see its VM instance details page.

  3. Ensure that Confidential VM service is Enabled.

From Command Line:

  1. List the instances in your project and get details on each instance:
gcloud compute instances list --format=json
  1. Ensure that enableConfidentialCompute is set to true for all instances with machine type starting with "n2d-".
enableConfidentialCompute: true


Enabling of Confidential Computing is only possible during instance creation. You must delete the current instance and create a new one.

From Console:

  1. Go to the VM instances page by visiting:


  3. Fill out the desired configuration for your instance.

  4. Under the Confidential VM service section, select Enable the Confidential Computing service on this VM instance.

  5. Click Create.

From Command Line:

Create a new instance with Confidential Compute enabled.

gcloud beta compute instances create <instance_name> --zone <zone> --confidential-compute --maintenance-policy=TERMINATE