Templates
Templates are reusable Terraform blueprints that define how cloud resources should be provisioned. Amnify provides a curated library of templates covering all major cloud services.How templates work
Templates live in your GitHub repository. When you connect GitHub to Amnify:- Amnify populates your repository with a curated library of Terraform templates
- Templates are synced to the Amnify platform automatically
- You can browse and select templates from the Deploy UI
- Customize any template to fit your requirements
- Add your own Terraform modules
- Version templates through normal Git workflows
Template categories
| Category | Description | Examples |
|---|---|---|
| Infrastructure | Core networking and foundational resources | VPCs, VNets, Resource Groups, Subnets, Security Groups |
| Application | Compute and application hosting | EC2 Instances, Container Apps, AKS Clusters, Web Apps |
| Database | Managed database services | RDS, PostgreSQL, CosmosDB, Cloud SQL |
| Combo | Multi-resource templates combining several services | Full application stacks |
Template variables
Each template defines input variables that you configure when creating a deployment:| Variable Type | Description |
|---|---|
| String | Text values (e.g., resource names, CIDR blocks) |
| Number | Numeric values (e.g., instance count, disk size) |
| Boolean | True/false flags (e.g., enable encryption) |
| Select | Choose from predefined options (e.g., instance size, OS image) |
Custom templates
Beyond the curated library, you can create your own templates:- Add a Terraform module to your GitHub repository
- Include a
template.jsonmanifest defining the template metadata and variables - Sync templates in Amnify to discover your new template
- Use it in deployments like any other template