Thorn Tech Marketing Ad
Skip to main content
Version: Next

Terraform HA Templates

StorageLink ships a Terraform template for each cloud, deploying the application tier (load balancer + 2+ instances across availability zones) plus a managed PostgreSQL database for configuration persistence. Pick your cloud:

CloudArticleMarketplace listing
AWSHA Terraform Template for AWSSubscribe
AzureHA Terraform Template for AzureSubscribe
Google CloudHA Terraform Template for Google CloudSubscribe

Make sure you are subscribed to StorageLink in the respective cloud's Marketplace before running terraform apply.

Each article follows the same structure: Overview → Resources Created → Running the Template → Accessing your StorageLink → Deleting the Stack → Variable Reference → Terraform file contents.

Common architecture

All three templates deploy the same logical shape, mapped to each cloud's native primitives:

LayerAWSAzureGoogle Cloud
ComputeAuto Scaling Group (EC2)Virtual Machine Scale SetRegional Instance Group Manager
Load BalancerNetwork Load Balancer + Elastic IPStandard Load Balancer + Public IPRegional Forwarding Rule + static IP
DatabaseRDS PostgreSQL (single-AZ default)Azure Database for PostgreSQL Flexible Server (single-zone default)Cloud SQL PostgreSQL (zonal default)
SecretsAWS Secrets ManagerAzure Key VaultProject metadata

The database is deployed in a single AZ / zone by default in all three templates to keep recurring spend low. Each article documents the one-line opt-in for a zone-redundant database if you need DB-layer failover.