Infrastructure as Code

Terraform Provider

Deploy and manage your DanubeData infrastructure with code. Version control, reproducible deployments, and team collaboration built-in.

Official Provider
9 Resources
4 Data Sources
EU Datacenters
main.tf
terraform {
  required_providers {
    danubedata = {
      source  = "AdrianSilaghi/danubedata"
      version = "~> 0.1"
    }
  }
}

provider "danubedata" {}

resource "danubedata_vps" "web" {
  name       = "web-server"
  image      = "ubuntu-24.04"
  datacenter = "fsn1"
}
terraform init
terraform apply

9 Resources to Manage Your Infrastructure

Everything you need to deploy a complete cloud infrastructure with Terraform.

resource
danubedata_vps

Virtual Machines

Deploy KubeVirt-powered VMs with shared or dedicated CPU, NVMe storage, and dual-stack networking.

vps.tf · terraform apply plan
resource "danubedata_vps" "web" {
name = "web-01"
image = "ubuntu-24.04"
plan = "vps-4vcpu-8gb"
ssh_key_ids = [danubedata_ssh_key.main.id]
}
+ 1 to add · 0 to change · 0 to destroy
danubedata_database

Managed Databases

MySQL, PostgreSQL, and MariaDB with automated backups, replicas, and SSL connections.

danubedata_cache

In-Memory Cache

Redis, Valkey, and Dragonfly cache instances with configurable memory and replication.

danubedata_storage_bucket

Object Storage

S3-compatible buckets with versioning, encryption, and lifecycle policies.

danubedata_storage_access_key

Storage Credentials

Access keys for S3-compatible storage with optional expiration dates.

danubedata_ssh_key

SSH Keys

Manage SSH keys for secure VPS authentication with fingerprint tracking.

danubedata_serverless

Serverless Containers

Knative-based containers with scale-to-zero, auto-scaling, and environment variables.

danubedata_firewall

Network Security

Firewall rules with inbound/outbound control, protocol filtering, and priority ordering.

danubedata_vps_snapshot

VM Backups

Point-in-time snapshots of VPS instances for disaster recovery and cloning.

4 Data Sources

Query existing infrastructure and available options.

danubedata_vps_images

VPS Images

List available OS images with versions

danubedata_cache_providers

Cache Providers

Query available cache providers

danubedata_database_providers

Database Providers

Query available database engines

danubedata_ssh_keys

SSH Keys

List existing SSH keys in your account

Real-World Examples

Copy and paste these examples to get started quickly

terraform {
  required_providers {
    danubedata = {
      source  = "AdrianSilaghi/danubedata"
      version = "~> 0.1"
    }
  }
}

provider "danubedata" {
  # Uses DANUBEDATA_API_TOKEN environment variable
  # api_token = "your-api-token"  # Or set directly (not recommended)
}

Why Infrastructure as Code?

Modern DevOps practices for reliable, scalable infrastructure

remote backend · locked

State Management

Terraform state tracks every deployed resource and its attributes. Use remote backends for team collaboration with locking, so two engineers can't race each other into a broken plan.

terraform.tfstate · s3 backend locked
$ terraform plan
Refreshing state...
+createdanubedata_vps.webnew~updatedanubedata_database.ordersreplicas-destroydanubedata_firewall.legacyprune
Plan: 1 to add, 1 to change, 1 to destroy.

Version Control

Track infrastructure changes with Git. Review, audit, and rollback deployments with full history.

Reusable Modules

Package infrastructure as modules. Share and reuse configurations across teams and projects.

CI/CD Integration

Automate deployments with GitHub Actions, GitLab CI, or any CI/CD platform.

Drift Detection

Detect and fix configuration drift. Keep your infrastructure in sync with your code.

Cost Estimation

Preview costs before deployment with terraform plan. Monthly costs returned for all resources.

Team Collaboration

Share configurations across teams. Enable self-service infrastructure with guardrails.

Multi-Environment

Deploy to dev, staging, and production from a single codebase using workspaces.

Built for Every Team

From startups to enterprise organizations

governance · at scale

Enterprise Infrastructure as Code

Standardize infrastructure across your organization with version-controlled Terraform configurations. Pair policies with module libraries so every team provisions the same way.

ComplianceGovernanceAudit Trails
org/modules · published audited
module "web-stack"
v2.4.1 · 38 uses
module "private-db"
v1.8.0 · 22 uses
module "tenant-vpc"
v3.0.2 · 17 uses
sentinel policy✓ cost-limits · ✓ tag-guard · ✓ no-public-s3

Multi-Environment Deployments

Promote infrastructure changes through dev, staging, and production with consistent configurations.

Dev/Staging/ProdWorkspacesVariables

Disaster Recovery

Recreate your entire infrastructure from code in minutes. Backup configurations, not just data.

RTO/RPOBackupRecovery

Self-Service Platform

Enable developers to provision infrastructure within guardrails using modules and policies.

Developer ExperienceModulesPolicies

Terraform Provider FAQ

Manage DanubeData with HCL.

  • Log in to your DanubeData dashboard, navigate to Settings > API Tokens, and create a new token with the required permissions. Store it securely and never commit it to version control. We recommend using environment variables.

Start Building with Terraform

Deploy your infrastructure in minutes. Full state management, drift detection, and team collaboration.