Terraform
Terraform ist das führende Infrastructure-as-Code-Tool — Cloud-Infrastruktur deklarativ definieren, versionieren und automatisch bereitstellen auf AWS, Azure, GCP und mehr.
Terraform von HashiCorp nutzt HCL (HashiCorp Configuration Language) um Infrastruktur deklarativ zu beschreiben. Der Execution Plan zeigt vor der Ausführung alle Änderungen. State-Management trackt den aktuellen Infrastrukturzustand. Terraform Cloud und Enterprise bieten Team-Kollaboration und Remote-State.
Terraform bei SW Business Solutions
Terraform ist unser Standard für Infrastructure as Code. Wir nutzen es, um Cloud-Infrastruktur reproduzierbar, versionierbar und teamübergreifend verwaltbar zu machen - auf AWS, Azure, GCP und On-Premise.
Einsatz in Kundenprojekten
- Cloud-Infrastruktur: EC2, RDS, S3, VPC, IAM und alle anderen AWS/Azure/GCP-Ressourcen als Code
- Kubernetes-Cluster: EKS, AKS oder GKE aus Terraform-Modulen provisionniert
- Netzwerk-Konfiguration: VPCs, Subnets, Security Groups und Peering
- Terraform Cloud: Remote State und Collaboration für Teams
- Module: Wiederverwendbare Terraform-Module für standardisierte Infrastruktur-Bausteine
Warum Terraform?
- Provider-Agnostisch: Dieselbe Tool-Chain für AWS, Azure, GCP und viele andere Provider
- State-Management: Terraform-State hält den Soll-Ist-Vergleich und ermöglicht incremental Changes
- Plan vor Apply: Terraform zeigt alle Änderungen vor der Ausführung - kein blindes Ausführen
- Module-Ökosystem: Terraform Registry mit tausenden Community-Modulen
- GitOps-Integration: Infrastructure-Änderungen via PR-Review und CI/CD
Typische Projektkombinationen
| Kombination | Anwendungsfall |
|---|---|
| Terraform + AWS | AWS-Infrastruktur als Code |
| Terraform + Ansible | Provisionierung + Konfiguration |
| Terraform + GitHub Actions | Infrastructure-Changes via CI/CD |
| Terraform + Vault | Sichere Credential-Übergabe |
Technical Details
Terraform Provider sind Plugins für jeden Cloud-Dienst und API. Module ermöglichen wiederverwendbare Infrastruktur-Bausteine. Workspaces trennen Entwicklungs- und Produktionsinfrastruktur. Terragrunt reduziert HCL-Duplikation in großen Setups.
Why Terraform?
Use Cases for Terraform
Cloud Infrastructure
Declaratively provision VMs, networks, databases and load balancers on AWS, Azure and GCP.
Multi-Cloud
Same infrastructure on multiple cloud providers from a single Terraform configuration.
GitOps Infrastructure
Version infrastructure-as-code in Git for audit trail, code reviews and automatic execution.
Kubernetes Clusters
Manage EKS, GKE and AKS Kubernetes clusters including node groups and RBAC with Terraform.
Works well with
Frequently Asked Questions about Terraform
Terraform State — wo soll ich ihn speichern?
Terraform oder Pulumi?
Was ist terraform plan?
Was sind Terraform-Module?
Quick Facts
Interested in Terraform?
Request consultationInterested in Terraform?
Let us discuss together how Terraform can be used in your next project.