Creating a Template¶
Log in to the management console.
In the upper left corner of the page, click
, and then click Management & Deployment > Resource Formation Service.
The Dashboard page is displayed.
Figure 1 RFS Dashboard¶
In the left navigation pane, choose Templates -> Private Templates.
Figure 2 RFS Private Templates¶
On the Private Templates page, click Create Template in the upper right corner.
Figure 3 Creating a template
On the Create Template page, select the Source:
URL: Enter a URL of an OBS template. When the OBS URL is correct, the corresponding template content from OBS will be displayed in the content section below. (The URL must contain at least the deployment code file or zip, and the file size cannot exceed 1 MB.)
Figure 4 Template URL¶
Upload Template: Upload a local template file or zip. After your upload, the corresponding template content will be displayed in the content section below. (The files in the format of .tf, .tf.json, and .zip are supported. At least the deployment code file needs to be uploaded. The size of a file cannot exceed 50 KB. The size of a decompressed .zip file cannot exceed 1 MB.)
Figure 5 Upload template¶
Input Template: Input template. You can create, rename, and delete files and folders here, which helps in organizing the template file structure better, and you can also export the templates.
Figure 6 Input template¶
Next, you can modify the template name, description and version description, as shown in Figure 7.
Figure 7 Configuring parameters
Note
The template name must start with a letter and can contain a maximum of 128 characters, including letters, digits, underscores (_), and hyphens (-). The name must be unique.
The template name cannot be changed after the template is created.
A template description can contain a maximum of 1024 characters.
A template version description can contain a maximum of 1024 characters.
Click Create Now to create a template.
Figure 8 Template list¶