[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-03 (世界標準時間)。"],[[["\u003cp\u003eComposite types, which are multiple templates configured to work together, are deprecated and will not be usable in new or updated deployments after February 22, 2022.\u003c/p\u003e\n"],["\u003cp\u003eTo convert composite types, you can either create a single template containing all elements or separate the elements into individual template files.\u003c/p\u003e\n"],["\u003cp\u003eTemplate files should be moved to the same location as the deployment, preferably in a separate folder to avoid naming conflicts, and the configuration file must be updated to import these files.\u003c/p\u003e\n"],["\u003cp\u003eDeployments need to be updated to directly use the individual template or templates instead of the composite type, replacing the composite type syntax with direct template references.\u003c/p\u003e\n"]]],[],null,["# Converting composite types to supported templates\n\nA composite type is one or more templates, configured to work together, that are\nadded permanently to Deployment Manager. For an overview of composite types,\nand steps to create them, visit\n[Adding a template as a composite type](/deployment-manager/docs/configuration/templates/create-composite-types).\n\nHowever,\n[the composite types feature is currently deprecated](/deployment-manager/docs/deprecations/composite-types),\nand will no longer be usable in new or updated deployments on **February 22,\n2022** . Your deployment configurations are affected if they use resource types\nwith the format\n`type: `\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e`/composite:`\u003cvar translate=\"no\"\u003eTEMPLATE_NAME\u003c/var\u003e.\n\nThis page describes the steps to convert composite types to supported templates.\n\nSeparating your composite type into individual templates\n========================================================\n\nTo convert your composite type into supported templates, you can either manually\ncreate a single template that contains all of the elements of the composite\ntype, or separate out the elements of your composite type into individual\ntemplate files.\n\nFor more information on templates and creating templates, refer to\n[Creating a basic template](/deployment-manager/docs/configuration/templates/create-basic-template).\n\nMoving and importing your template files\n========================================\n\nYou must copy all individual template files to the same location as your\ndeployment. To avoid naming conflicts, we recommend that you use a separate\nfolder from the folder you used for your deployment configuration.\n\nYou must also ensure that your configuration file is set up to import the\nindividual template file or files. For information about importing templates,\nvisit\n[Importing the template](/deployment-manager/docs/configuration/templates/create-basic-template#importing_the_template).\n\nReplacing references to your composite type\n===========================================\n\nNext, update your deployments to use your individual template or templates\ndirectly, instead of the previous composite type.\n\nFind and replace all instances of composite type syntax, such as: \n\n type: \u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-n\"\u003ePROJECT_ID\u003c/span\u003e\u003c/var\u003e/composite:main-template\n\nReplace the composite type syntax with a direct reference to a template, such\nas: \n\n type: \u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-n\"\u003ePATH_TO\u003c/span\u003e\u003c/var\u003e/main-template.jinja"]]