Define and ManageInfrastructure as Code
Manage servers, domains, databases, and more declaratively with the official Hosted Cloud Terraform Provider. Published on HashiCorp Registry.
Supported Resource Types
Manage all Hosted Cloud services with Terraform
resource "hostedcloud_server" "web" {
name = "web-production"
region = "ist1"
plan = "cloud-4vcpu-8gb"
image = "ubuntu-22.04"
ssh_keys = [hostedcloud_ssh_key.main.id]
tags = {
environment = "production"
team = "backend"
}
}Why Terraform?
Leverage the advantages of the Infrastructure as Code approach
Infrastructure as Code
Define your infrastructure as code, store it in version control, and share it with your teammates.
Version Control
Every infrastructure change is tracked in Git. Know who changed what and when.
Repeatability
Create the same infrastructure consistently across different environments (dev, staging, prod).
Team Collaboration
Review infrastructure changes via pull requests. Team coordination with remote state.
Drift Detection
Detect unexpected changes in your infrastructure and auto-correct them.
Modular Structure
Create reusable modules. Use ready-made modules from the Terraform Registry.
Quick Start
Start managing your infrastructure as code in 3 steps
Define the Provider
Add the Hosted Cloud provider to your Terraform configuration.
terraform {
required_providers {
hostedcloud = {
source = "hosted-cloud/hostedcloud"
version = "~> 2.0"
}
}
}Authentication
Configure your API key and default region.
provider "hostedcloud" {
api_key = var.hc_api_key
region = "ist1"
}Apply
Run Terraform commands to create your infrastructure.
terraform init
terraform plan
terraform applyFrequently Asked Questions
Code Your Infrastructure
Define and manage your Hosted Cloud infrastructure in minutes with Terraform.