Naming resources (original) (raw)

This page describes the naming convention for Compute Engine resources.

Resources are the fundamental components that make up a Cloud service or product. For example, resources on Compute Engine include but are not limited to:

To learn more about resources, seeGlobal, regional, and zonal resources documentation.

Naming convention

When you create a new resource on Compute Engine, you have to provide properties such as a name for the resource.

For resources on Compute Engine, the resource name must meet the following format (unless specified differently in the documentation for creating that resource):

Name uniqueness

In general, resource names must be unique within a location within a project. For example, an external IP address name must be unique within the region where it resides. However, you can reuse names across locations.

If the vmDnsSetting setting for the Compute Engine project resource isn't set to ZonalOnly then all VM names must be unique across the project. We_strongly recommend_ using the vmDnsSetting:ZonalOnly setting for your projects, not only so you can reuse VM names across zones and regions, but also because it offers higher reliability by isolating failures in the DNS registration to individual zones. For more information, seeZonal DNS names.