Create a template | Infrastructure as Code | Northflank Application docs

Infrastructure as Code /

Create a template

You can create a new template from the templates page within a project, or the templates page in your team or user account settings.

Click here to view your account templates page.

Templates are encrypted at rest on the platform, so any secrets and sensitive data are kept secure.

Template scopes

Your account templates page will display all templates created within your account, and your projects template page will only show templates that have been created or run on that project.

As examples, you can use templates at the account level to automate common deployments across different projects, and templates at the project level to manage specific deployments, or automate specific tasks.

Select template project

You can create a new project using a template, or choose an existing project for the template to run in. You can specify the name, colour, and region of the project to be created. The project region cannot be changed after creation. If your account or team uses another cloud provider, you can also choose from available clusters on your own cloud account.

If you run a template that creates a project with the same name as an existing project in the account, it will update the project according to the template. If the template specifies a region different to the existing project, the template run will fail.

If you run a template that specifies (but does not create) a project that doesn't exist in the account, the template run will fail.

Set argument overrides

You can configure argument overrides for a template which will override all arguments set in the template. Arguments can be accessed in the template in the form: ${args.argumentName}.