Cloud Deployment Manager dejará de estar disponible el 31 de diciembre de 2025. Si actualmente usas Deployment Manager, migra a Infrastructure Manager o a una tecnología de implementación alternativa antes del 31 de diciembre de 2025 para asegurarte de que tus servicios continúen sin interrupciones.
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Una configuración define la estructura de tu implementación, incluidos los tipos y las propiedades de los recursos parte de tu implementación, todas las plantillas que debería usar esta, y subarchivos adicionales que se pueden ejecutar a fin de crear tu configuración final. Para poder crear una implementación, siempre debes especificar una configuración.
En la configuración, puedes definir diferentes recursos compatibles con Google Cloud Platform de distintos servicios en un mismo archivo de configuración.
Entre los recursos de ejemplo se encuentran los siguientes:
Entre todos los recursos de Compute Engine, se incluyen los siguientes:
Debes escribir archivos de configuración con la sintaxis YAML. Para aprender a crear un archivo de configuración, consulta Crear una configuración.
Lenguajes de plantillas
Una configuración puede importar uno o más archivos de plantillas que Deployment Manager expandirá durante la implementación para crear la configuración final. Puedes escribir plantillas tanto en Jinja como Python. Se pueden mezclar las plantillas. Una sola configuración puede importar plantillas tanto Jinja como Python. Una plantilla puede ser un archivo local o un archivo alojado en la URL de un tercero.
Las plantillas ofrecen funcionalidades adicionales, como la capacidad de utilizar variables de entorno, la capacidad de definir variables personalizadas, la capacidad de utilizar bibliotecas Python, etcétera.
Todas las configuraciones se expanden en el lado del servidor dentro de un entorno controlado que mantiene Deployment Manager. A fin de evitar abusos, el equipo de Deployment Manager administra el entorno con especial atención, que tiene algunas limitaciones:
Ni la configuración original ni la expandida pueden superar 1 MB.
Cualquier configuración que se suba a Deployment Manager está limitada en la cantidad de tiempo que puede tardar en ejecutarse, y la cantidad de potencia de procesamiento que consume durante la expansión. Si te encuentras con esta limitación, considera dividir tu configuración en plantillas más pequeñas o simplificar las estructuras complejas, como la recurrencia y los bucles anidados.
Las plantillas de Python no pueden hacer llamadas al sistema o a la red. Estas plantillas se rechazan automáticamente.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-03 (UTC)"],[[["\u003cp\u003eA configuration file is mandatory for creating a deployment, defining the structure, resource types, properties, and templates involved.\u003c/p\u003e\n"],["\u003cp\u003eConfigurations support a wide array of Google Cloud resources, including Compute Engine, Kubernetes Engine, BigQuery, Cloud Storage, and Cloud SQL, all within a single file.\u003c/p\u003e\n"],["\u003cp\u003eConfiguration files must be written using YAML syntax, and they can import templates for enhanced functionality using Jinja or Python.\u003c/p\u003e\n"],["\u003cp\u003eDeployment Manager expands configurations on the server-side, with limitations such as a 1 MB size limit for both original and expanded configurations.\u003c/p\u003e\n"],["\u003cp\u003ePython templates cannot make system or network calls, and exceeding time or power usage limits can require splitting or simplifying the configuration.\u003c/p\u003e\n"]]],[],null,["# Configurations Overview\n\nA configuration defines the structure of your deployment, including the\ntype and properties of the resources that are part of the deployment, any\ntemplates the configuration should use, and additional subfiles that can be\nexecuted to create your final configuration. You must always specify a\nconfiguration in order to create a deployment.\n\nIn your configuration, you can define a variety of supported Google Cloud\nplatform resources from different services in a single configuration file.\nSome example resources include:\n\n- All [Compute Engine](/compute/docs) resources including:\n - [Autoscaler](/compute/docs/autoscaler)\n - [Instance groups](/compute/docs/instance-groups) and [managed instance groups](/compute/docs/instance-groups/manager)\n- [Kubernetes Engine](/kubernetes-engine)\n- [BigQuery](/bigquery)\n- [Cloud Storage](/storage)\n- [Cloud SQL](/cloud-sql)\n\nFor a full list of resources, consult this table of\n[Supported resource types](/deployment-manager/docs/configuration/supported-resource-types)\nor make a\n[`list()`](/deployment-manager/docs/reference/latest/types/list) request to the\n[Types collection](/deployment-manager/docs/reference/latest/types).\n\nConfiguration language\n----------------------\n\nYou must write configuration files using\n[YAML](http://en.wikipedia.org/wiki/YAML) syntax. To learn\nhow to create a configuration file, see\n[Create a Configuration](/deployment-manager/docs/configuration/create-basic-configuration).\n\nTemplate languages\n------------------\n\nA configuration can import one or more template files that Deployment Manager\nwill expand during deployment to create the final configuration. You can\nwrite templates in either Jinja or Python. It is possible to mix and match\ntemplates. A single configuration can import both Jinja and Python templates. A\ntemplate can be a local file or a file hosted at a third-party URL.\n\nTemplates offer additional functionality, like the ability to use\nenvironment variables, the ability to define custom variables, the ability\nto use Python libraries, and so on.\n\nFor more information about templates, read\n[Creating a Basic Template](/deployment-manager/docs/configuration/templates/create-basic-template).\n\nConfiguration limits\n--------------------\n\nAll configurations are expanded on the server side within a controlled\nenvironment that Deployment Manager maintains. In order to prevent abuse,\nthis environment is closely managed by the Deployment Manager team\nand has some limitations:\n\n- Neither your original configuration nor your expanded configuration can exceed 1 MB.\n- Any configurations uploaded to Deployment Manager are limited in the amount of time the configuration can take to run and the amount of processing power the configuration consumes during expansion. If you run into this limitation, consider splitting your configuration into smaller templates, or simplify complex structures such as recursion and nested loops.\n- Any Python templates you use cannot make any system or network calls. These templates will automatically be rejected.\n\nWhat's next\n-----------\n\n- Create a [simple configuration](/deployment-manager/docs/configuration/create-basic-configuration).\n- Decide if you want to use [templates](/deployment-manager/docs/configuration/templates/create-basic-template).\n- If you are exposing your configuration to other users, consider [creating a schema](/deployment-manager/docs/configuration/templates/using-schemas).\n- Learn how you can [host templates externally](/deployment-manager/docs/configuration/templates/hosting-templates-externally)."]]