Create and manage templates
A template packages a WebAssembly binary together with a predefined configuration — environment variables, secrets, response headers, and instructions — so the same application can be deployed repeatedly without reconfiguring it from scratch. Templates can be created from a new binary or saved from an existing application.
Create a template
The configuration process is identical for HTTP and CDN applications.
1. In the CDB Technical Web Portal, navigate to CDB EdgeCompute and open HTTP Applications or CDN Applications.
2. Select Templates and click Create template.

3. Upload a .wasm binary. Click the upload area or drag and drop the file. Once the upload completes, click Save binary — the rest of the form fields appear after the binary is saved.

4. Enter the template metadata:
- Name — required.
- Description — optional, shown in the template list.
- Usage instructions — optional, displayed when deploying from this template. Include any required variables or configuration notes.
5. Define template parameters:
- Leave the Mandatory parameter checkbox unchecked for optional parameters.
- Select Mandatory parameter to require a value at deployment time.
- Set the parameter type to Secret to link the value from Secrets Manager — the deploying user will need to supply a secret rather than a plain value.


6. Click Save template.
The template is now available in the account.
Templates are account-scoped. To make a template visible to other users in the account, contact the account admin.
Edit a template
-
In the Customer Portal, navigate to CDB EdgeCompute and open HTTP Applications or CDN Applications.
-
Select Templates and click the three-dot icon next to the template.
-
Click Edit template.

- Update the configuration and click Save template.

Delete a template
Deleted templates cannot be restored.
-
In the Customer Portal, navigate to CDB EdgeCompute and open HTTP Applications or CDN Applications.
-
Select Templates and click the three-dot icon next to the template.
-
Click Delete template.

Update template binary
Use this option to replace the WebAssembly binary without changing the template's name, description, or parameters.
-
In the Customer Portal, navigate to CDB EdgeCompute and open HTTP Applications or CDN Applications.
-
Select Templates and click the three-dot icon next to the template.
-
Click Update template binary.

- Upload the new
.wasmfile and click Save binary.

- Review the configuration and click Save template.

Create an app from a template
-
In the Customer Portal, navigate to CDB EdgeCompute and open HTTP Applications or CDN Applications.
-
Select Templates, then click the three-dot icon next to the template and choose Create app from template.
-
Complete the application configuration:
After deployment, the application inherits the template's binary and predefined configuration. Any mandatory parameters defined in the template must be supplied during deployment.
