Free Starter Kit — Updated April 2026

Blockchain IaC Starter Kit — Terraform + CI/CD Pipeline

Production-ready Terraform modules for Fabric and Besu, plus a GitHub Actions pipeline that deploys blockchain nodes with one git push.

Manual blockchain deploys take weeks and break in production

Manual node provisioning creates configuration drift, undocumented setups, and deployments that only one person knows how to reproduce. When that person is unavailable during an incident, you're stuck. Infrastructure as Code eliminates this entirely.

main.tf — Fabric Network Module
# main.tf — Fabric Network (using chainlaunch provider)

resource "chainlaunch_key" "org1_key" {
  name        = "org1-signing-key"
  algorithm   = "ECDSA"
  curve       = "P-256"
  provider_id = chainlaunch_key_provider.database.id
}

resource "chainlaunch_fabric_organization" "org1" {
  name        = "Org1"
  msp_id      = "Org1MSP"
  description = "Supply chain manufacturer"
  provider_id = chainlaunch_key_provider.database.id
}

resource "chainlaunch_fabric_peer" "peer0_org1" {
  name              = "peer0-org1"
  organization_id   = chainlaunch_fabric_organization.org1.id
  listen_address    = "0.0.0.0:7051"
  chaincode_address = "0.0.0.0:7052"
  events_address    = "0.0.0.0:7053"
  operations_port   = 9443
  domain_names      = ["peer0.org1.example.com"]
}
Get the full module with channels and chaincode
.github/workflows/deploy.yml
# .github/workflows/deploy.yml
name: Blockchain Infrastructure

on:
  pull_request:
    paths: ['environments/**']
  push:
    branches: [main]
    paths: ['environments/**']

jobs:
  plan:
    if: github.event_name == 'pull_request'
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: hashicorp/setup-terraform@v3
      - run: terraform init
      - run: terraform plan -no-color
        # Posts plan as PR comment...
Get the complete 3-stage pipeline
62+
Terraform Resources
3
CI/CD Stages
93%
Deploy Time Saved
What's inside
Recommended directory layout — environments/, modules/, and .github/ structure
Complete Fabric Terraform module — orgs, peers, orderers, channels, chaincode lifecycle
Complete Besu Terraform module — validators, QBFT genesis, boot nodes, metrics
GitHub Actions CI/CD pipeline — plan on PR, apply on merge, manual approval for production
Remote state config — S3 + DynamoDB backend with bootstrap script
Quick reference — 10 common Terraform commands for blockchain operations
DV
By David Viejo — CTO at KFS, 6+ years in blockchain infrastructure. Creator of Bevel Operator Fabric (Hyperledger Foundation).

Get the starter kit

Enter your work email and we'll send you the complete Terraform modules, CI/CD pipeline, and state management config.

Copy-paste Terraform modules for Fabric & Besu
GitHub Actions pipeline with approval gates
S3 remote state bootstrap script
Uses the chainlaunch Terraform provider — 62+ resources available on the Terraform Registry.