Browsing the Template Library
- Navigate to Deploy → Templates in the Amnify sidebar
- The library shows all available templates synced from your GitHub repository
- Templates are organized by category:
- Infrastructure — networks, compute, clusters, storage
- Application — web services, container deployments, serverless
- Database — managed database services
- Combinations — multi-component stacks
Understanding a Template Before Using It
Before selecting a template for a new deployment, review its detail:- Description — what the template provisions and what it is designed for
- Variables — what inputs you will need to provide: which are required vs optional, which are sensitive (e.g., passwords — you will not be able to see them after submission), and whether any variables have predefined options or link to existing cloud resources
Selecting a Template for a New Deployment
When creating a new Deployment:- In the Deployment Creation wizard, choose Template as the source type
- Click Browse Templates
- Select the template you want to use
- The wizard advances to the variable configuration step
Your Template Repository
Templates live in a GitHub repository owned by your organization. Amnify Deploy syncs from this repository; it does not host or lock your templates internally. Your team has full control: add new templates by adding files to the repository, modify existing templates by editing files in GitHub, and version everything using standard Git workflows (branches, pull requests, tags).Repository Directory Structure
Your GitHub repository must follow this directory structure for Amnify to discover and sync templates:Rules
- The top-level directory must be named
templates/ - Provider subdirectories must be one of:
azure,aws,gcp - Each template is a subdirectory containing a
template.jsonmanifest and one or more.tffiles - All
.tffiles in the template directory are downloaded during deployment
The template.json Manifest
Every template directory must contain a template.json file with this structure:
Variable Properties
Adding a New Template
To make a new template available in Amnify Deploy:- Author the template in your GitHub repository following the directory structure above
- Commit and push the new template to your repository’s main branch (or the branch configured as the sync source)
- Trigger a Sync in Amnify Deploy (see Syncing Templates below)
- The new template appears in the library immediately after the sync completes
Modifying an Existing Template
To update an existing template:- Edit the template file in your GitHub repository
- You can change the infrastructure definition, update variable labels, add new variables, or change default values
- Commit and push the changes
- Trigger a Sync in Amnify Deploy
Changing a template’s variables (adding required variables or removing existing ones) will affect Deployments that use it. If you add a new required variable, existing Deployments will need to be edited to provide a value for it before they can be executed again.
Syncing Templates
Amnify Deploy does not automatically pull changes from GitHub. To update the template library after changes in your repository:- Navigate to Deploy → Templates
- Click Sync Templates
- Amnify fetches the latest templates from your configured GitHub repository
- New and updated templates appear in the library immediately
Next Steps
- Creating Deployments — turn a template into a running deployment
- Templates concept page — deeper conceptual overview of how templates work